summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_chat.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-18 21:16:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-18 21:16:39 +0000
commit0a749321d05905e3d6396b053cbe8b208e7e4aa6 (patch)
tree69714092cf8ebe892bf79c56f1641ecfa701cfb5 /protocols/JabberG/src/jabber_chat.cpp
parente74376e044f745e7efdbb6bcd3d8c1de5d46d470 (diff)
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@5029 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_chat.cpp')
-rw-r--r--protocols/JabberG/src/jabber_chat.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp
index 6e7a0cc115..450e34bb5c 100644
--- a/protocols/JabberG/src/jabber_chat.cpp
+++ b/protocols/JabberG/src/jabber_chat.cpp
@@ -213,19 +213,15 @@ void CJabberProto::GcLogShowInformation(JABBER_LIST_ITEM *item, JABBER_RESOURCE_
case INFO_STATUS:
if (m_options.GcLogStatuses) {
- if (user->statusMessage) {
+ TCHAR *ptszDescr = pcli->pfnGetStatusModeDescription(user->status, 0);
+ if (user->statusMessage)
mir_sntprintf(buf, SIZEOF(buf), TranslateT("User %s changed status to %s with message: %s"),
- user->resourceName,
- CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, user->status, GSMDF_TCHAR),
- user->statusMessage);
- }
- else {
- mir_sntprintf(buf, SIZEOF(buf), TranslateT("User %s changed status to %s"),
- user->resourceName,
- CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, user->status, GSMDF_TCHAR));
- }
+ user->resourceName, ptszDescr, user->statusMessage);
+ else
+ mir_sntprintf(buf, SIZEOF(buf), TranslateT("User %s changed status to %s"), user->resourceName, ptszDescr);
}
break;
+
case INFO_CONFIG:
if (m_options.GcLogConfig)
mir_sntprintf(buf, SIZEOF(buf), TranslateT("Room configuration was changed."));