summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-11-19 20:01:52 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-11-19 20:01:52 +0000
commited78c5f078e4fb266c22845db4ab0eddc560d066 (patch)
treead613a99cd7228cb392f8162fe4f3908896220ae /protocols/JabberG/src/jabber_proto.cpp
parent3344e2189f3585a9ac407b56aa78547b3f769bc8 (diff)
chats are always present in NG
git-svn-id: http://svn.miranda-ng.org/main/trunk@6942 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_proto.cpp')
-rw-r--r--protocols/JabberG/src/jabber_proto.cpp28
1 files changed, 12 insertions, 16 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp
index 4d0a5631ba..6830a578f6 100644
--- a/protocols/JabberG/src/jabber_proto.cpp
+++ b/protocols/JabberG/src/jabber_proto.cpp
@@ -226,22 +226,18 @@ int CJabberProto::OnModulesLoadedEx(WPARAM, LPARAM)
m_pInfoFrame = new CJabberInfoFrame(this);
- if (ServiceExists(MS_GC_REGISTER)) {
- jabberChatDllPresent = true;
-
- GCREGISTER gcr = {0};
- gcr.cbSize = sizeof(GCREGISTER);
- gcr.dwFlags = GC_TYPNOTIF | GC_CHANMGR | GC_TCHAR;
- gcr.iMaxText = 0;
- gcr.nColors = 16;
- gcr.pColors = &crCols[0];
- gcr.ptszModuleDispName = m_tszUserName;
- gcr.pszModule = m_szModuleName;
- CallServiceSync(MS_GC_REGISTER, NULL, (LPARAM)&gcr);
-
- HookProtoEvent(ME_GC_EVENT, &CJabberProto::JabberGcEventHook);
- HookProtoEvent(ME_GC_BUILDMENU, &CJabberProto::JabberGcMenuHook);
- }
+ GCREGISTER gcr = {0};
+ gcr.cbSize = sizeof(GCREGISTER);
+ gcr.dwFlags = GC_TYPNOTIF | GC_CHANMGR | GC_TCHAR;
+ gcr.iMaxText = 0;
+ gcr.nColors = 16;
+ gcr.pColors = &crCols[0];
+ gcr.ptszModuleDispName = m_tszUserName;
+ gcr.pszModule = m_szModuleName;
+ CallServiceSync(MS_GC_REGISTER, NULL, (LPARAM)&gcr);
+
+ HookProtoEvent(ME_GC_EVENT, &CJabberProto::JabberGcEventHook);
+ HookProtoEvent(ME_GC_BUILDMENU, &CJabberProto::JabberGcMenuHook);
HICON hIcon = LoadIconEx("main");
StatusIconData sid = { sizeof(sid) };