diff options
author | George Hazan <george.hazan@gmail.com> | 2016-04-21 12:46:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-04-21 12:46:33 +0000 |
commit | 6f03a0bf158226db5e50e099786a09ba4894a393 (patch) | |
tree | 9dce41ed0b7cb89859fc390d1595f28d5d628863 /protocols/JabberG/src/jabber_proto.cpp | |
parent | 9fb06fd3a3c18d3e27f68be92c7eab599cea8a14 (diff) |
- fix for a chat room processing in roster;
- fix for a default chat room's nick
git-svn-id: http://svn.miranda-ng.org/main/trunk@16733 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_proto.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_proto.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index 57025c09b5..67b6c4bd22 100644 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -241,11 +241,18 @@ int CJabberProto::OnModulesLoadedEx(WPARAM, LPARAM) for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) {
SetContactOfflineStatus(hContact);
+ if (isChatRoom(hContact)) {
+ ptrT jid(getTStringA(hContact, "ChatRoomID"));
+ if (jid != NULL)
+ ListAdd(LIST_CHATROOM, jid, hContact);
+ continue;
+ }
+
ptrT jid(getTStringA(hContact, "jid"));
if (jid == NULL)
continue;
- ListAdd(isChatRoom(hContact) ? LIST_CHATROOM : LIST_ROSTER, jid, hContact);
+ ListAdd(LIST_ROSTER, jid, hContact);
TCHAR *resourcepos = _tcschr(jid, '/');
if (resourcepos != NULL)
|