summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r--protocols/FacebookRM/src/process.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index c36953563a..c5687cc899 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -217,7 +217,7 @@ void FacebookProto::ProcessFriendList(void*)
// Update username
ptrA username(getStringA(hContact, FACEBOOK_KEY_USERNAME));
- if (!username || strcmp(username, fbu->username.c_str())) {
+ if (!username || mir_strcmp(username, fbu->username.c_str())) {
if (!fbu->username.empty())
setString(hContact, FACEBOOK_KEY_USERNAME, fbu->username.c_str());
else
@@ -725,7 +725,7 @@ void FacebookProto::ReceiveMessages(std::vector<facebook_message*> messages, boo
// Save TID if not exists already
ptrA tid(getStringA(hChatContact, FACEBOOK_KEY_TID));
- if (!tid || strcmp(tid, messages[i]->thread_id.c_str()))
+ if (!tid || mir_strcmp(tid, messages[i]->thread_id.c_str()))
setString(hChatContact, FACEBOOK_KEY_TID, messages[i]->thread_id.c_str());
// Try to map name of this chat participant to his id
@@ -775,7 +775,7 @@ void FacebookProto::ReceiveMessages(std::vector<facebook_message*> messages, boo
// Save TID if not exists already
ptrA tid(getStringA(hContact, FACEBOOK_KEY_TID));
- if (!tid || strcmp(tid, messages[i]->thread_id.c_str()))
+ if (!tid || mir_strcmp(tid, messages[i]->thread_id.c_str()))
setString(hContact, FACEBOOK_KEY_TID, messages[i]->thread_id.c_str());
if (messages[i]->isIncoming && messages[i]->isUnread && messages[i]->type == MESSAGE) {
@@ -961,7 +961,7 @@ void FacebookProto::ProcessFriendRequests(void*)
bool isNew = false;
ptrA oldTime(getStringA(hContact, "RequestTime"));
- if (oldTime == NULL || strcmp(oldTime, time.c_str())) {
+ if (oldTime == NULL || mir_strcmp(oldTime, time.c_str())) {
// This is new request
isNew = true;
setString(hContact, "RequestTime", time.c_str());