diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-11 14:01:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-11 14:01:25 +0000 |
commit | 773421e8ba17637d994088c393d406226b516a30 (patch) | |
tree | 130c0bf529e30f493ae4f2abbe1230d31fecdeed /protocols/Tlen/src/tlen_presence.cpp | |
parent | 3fc8b6f686262e8a595fc10b2bd947526ca77bdc (diff) |
- m_hNetlibUser moved to PROTO_INTERFACE;
- unified protocol loggers
git-svn-id: http://svn.miranda-ng.org/main/trunk@6435 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tlen/src/tlen_presence.cpp')
-rw-r--r-- | protocols/Tlen/src/tlen_presence.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Tlen/src/tlen_presence.cpp b/protocols/Tlen/src/tlen_presence.cpp index 52a8ca12c7..4d20d08f6a 100644 --- a/protocols/Tlen/src/tlen_presence.cpp +++ b/protocols/Tlen/src/tlen_presence.cpp @@ -49,7 +49,7 @@ void TlenProcessPresence(XmlNode *node, TlenProtocol *proto) if ((hContact=TlenHContactFromJID(proto, from)) == NULL) hContact = TlenDBCreateContact(proto, from, nick, FALSE); if (!TlenListExist(proto, LIST_ROSTER, from)) { - TlenLog(proto, "Receive presence online from %s (who is not in my roster)", from); + proto->debugLogA("Receive presence online from %s (who is not in my roster)", from); TlenListAdd(proto, LIST_ROSTER, from); } status = ID_STATUS_ONLINE; @@ -100,13 +100,13 @@ void TlenProcessPresence(XmlNode *node, TlenProtocol *proto) } } } - TlenLog(proto, "%s (%s) online, set contact status to %d", nick, from, status); + proto->debugLogA("%s (%s) online, set contact status to %d", nick, from, status); mir_free(nick); } } else if (!strcmp(type, "unavailable")) { if (!TlenListExist(proto, LIST_ROSTER, from)) { - TlenLog(proto, "Receive presence offline from %s (who is not in my roster)", from); + proto->debugLogA("Receive presence offline from %s (who is not in my roster)", from); TlenListAdd(proto, LIST_ROSTER, from); } else { @@ -144,7 +144,7 @@ void TlenProcessPresence(XmlNode *node, TlenProtocol *proto) item->isTyping = FALSE; CallService(MS_PROTO_CONTACTISTYPING, (WPARAM) hContact, PROTOTYPE_CONTACTTYPING_OFF); } - TlenLog(proto, "%s offline, set contact status to %d", from, status); + proto->debugLogA("%s offline, set contact status to %d", from, status); } } else if (!strcmp(type, "subscribe")) { @@ -153,7 +153,7 @@ void TlenProcessPresence(XmlNode *node, TlenProtocol *proto) TlenSend(proto, "<presence to='%s' type='subscribed'/>", from); } else if ((nick=TlenNickFromJID(from)) != NULL) { - TlenLog(proto, "%s (%s) requests authorization", nick, from); + proto->debugLogA("%s (%s) requests authorization", nick, from); TlenDBAddAuthRequest(proto, from, nick); mir_free(nick); } |