summaryrefslogtreecommitdiff
path: root/protocols/Tlen/src/tlen_presence.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-22 12:33:13 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-22 12:33:13 +0000
commit159b565b390687258ee65a3b66596e118752063c (patch)
tree91105378fcb9e030ba4a7f6572c4ea307cb8c8d6 /protocols/Tlen/src/tlen_presence.cpp
parent7f4d529b59698d7eb2403bd1f9088a5aa7fa9080 (diff)
replace strcmp to mir_strcmp
git-svn-id: http://svn.miranda-ng.org/main/trunk@13752 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tlen/src/tlen_presence.cpp')
-rw-r--r--protocols/Tlen/src/tlen_presence.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/protocols/Tlen/src/tlen_presence.cpp b/protocols/Tlen/src/tlen_presence.cpp
index a3920281b7..c68af8606c 100644
--- a/protocols/Tlen/src/tlen_presence.cpp
+++ b/protocols/Tlen/src/tlen_presence.cpp
@@ -44,7 +44,7 @@ void TlenProcessPresence(XmlNode *node, TlenProtocol *proto)
TlenProcessPresenceAvatar(proto, node, item);
}
}
- if (type == NULL || (!strcmp(type, "available"))) {
+ if (type == NULL || (!mir_strcmp(type, "available"))) {
if ((nick=TlenLocalNickFromJID(from)) != NULL) {
if ((hContact=TlenHContactFromJID(proto, from)) == NULL)
hContact = TlenDBCreateContact(proto, from, nick, FALSE);
@@ -55,11 +55,11 @@ void TlenProcessPresence(XmlNode *node, TlenProtocol *proto)
status = ID_STATUS_ONLINE;
if ((showNode=TlenXmlGetChild(node, "show")) != NULL) {
if ((show=showNode->text) != NULL) {
- if (!strcmp(show, "away")) status = ID_STATUS_AWAY;
- else if (!strcmp(show, "xa")) status = ID_STATUS_NA;
- else if (!strcmp(show, "dnd")) status = ID_STATUS_DND;
- else if (!strcmp(show, "chat")) status = ID_STATUS_FREECHAT;
- else if (!strcmp(show, "unavailable")) {
+ if (!mir_strcmp(show, "away")) status = ID_STATUS_AWAY;
+ else if (!mir_strcmp(show, "xa")) status = ID_STATUS_NA;
+ else if (!mir_strcmp(show, "dnd")) status = ID_STATUS_DND;
+ else if (!mir_strcmp(show, "chat")) status = ID_STATUS_FREECHAT;
+ else if (!mir_strcmp(show, "unavailable")) {
// Always show invisible (on old Tlen client) as invisible (not offline)
status = ID_STATUS_OFFLINE;
}
@@ -106,7 +106,7 @@ void TlenProcessPresence(XmlNode *node, TlenProtocol *proto)
mir_free(nick);
}
}
- else if (!strcmp(type, "unavailable")) {
+ else if (!mir_strcmp(type, "unavailable")) {
if (!TlenListExist(proto, LIST_ROSTER, from)) {
proto->debugLogA("Receive presence offline from %s (who is not in my roster)", from);
TlenListAdd(proto, LIST_ROSTER, from);
@@ -153,7 +153,7 @@ void TlenProcessPresence(XmlNode *node, TlenProtocol *proto)
proto->debugLogA("%s offline, set contact status to %d", from, status);
}
}
- else if (!strcmp(type, "subscribe")) {
+ else if (!mir_strcmp(type, "subscribe")) {
if (strchr(from, '@') == NULL) {
// automatically send authorization allowed to agent/transport
TlenSend(proto, "<presence to='%s' type='subscribed'/>", from);
@@ -164,7 +164,7 @@ void TlenProcessPresence(XmlNode *node, TlenProtocol *proto)
mir_free(nick);
}
}
- else if (!strcmp(type, "subscribed")) {
+ else if (!mir_strcmp(type, "subscribed")) {
if ((item=TlenListGetItemPtr(proto, LIST_ROSTER, from)) != NULL) {
if (item->subscription == SUB_FROM) item->subscription = SUB_BOTH;
else if (item->subscription == SUB_NONE) {