summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-04-13 10:22:07 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-04-13 10:22:07 +0000
commit1b5eef0a02ae4f33c0a9e5dc31e5dc11ff525710 (patch)
tree75c1594a983d75459e8c337ea82381584a059659 /protocols/JabberG/src/jabber_proto.cpp
parent3269e1db8b4365187485d600cb2ebdda4894996a (diff)
old junk removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@16635 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_proto.cpp')
-rw-r--r--protocols/JabberG/src/jabber_proto.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp
index f8c6d98885..d9fca6c2d4 100644
--- a/protocols/JabberG/src/jabber_proto.cpp
+++ b/protocols/JabberG/src/jabber_proto.cpp
@@ -236,24 +236,21 @@ int CJabberProto::OnModulesLoadedEx(WPARAM, LPARAM)
HookProtoEvent(ME_IDLE_CHANGED, &CJabberProto::OnIdleChanged);
CheckAllContactsAreTransported();
- ConvertPasswords();
// Set all contacts to offline
for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) {
SetContactOfflineStatus(hContact);
- if (!getByte(hContact, "IsTransport", 0))
- continue;
-
ptrT jid(getTStringA(hContact, "jid"));
if (jid == NULL)
continue;
- TCHAR *domain = NEWTSTR_ALLOCA(jid);
- TCHAR *resourcepos = _tcschr(domain, '/');
+ TCHAR *resourcepos = _tcschr(jid, '/');
if (resourcepos != NULL)
*resourcepos = '\0';
- m_lstTransports.insert(mir_tstrdup(domain));
+
+ if (getByte(hContact, "IsTransport", 0))
+ m_lstTransports.insert(mir_tstrdup(jid));
}
return 0;