summaryrefslogtreecommitdiff
path: root/protocols/Skype
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-05-06 14:51:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-05-06 14:51:45 +0000
commitc7a87b51ee671f7c5a1bbdd80e001a863f9e7215 (patch)
treeb4e6512758fa70c06b8831eac29b732cb28cf588 /protocols/Skype
parentd1714aa0580ec116d0d95bcaabecf35fbfbfe10c (diff)
Skype: cleanup for the SRMM button
git-svn-id: http://svn.miranda-ng.org/main/trunk@4590 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype')
-rw-r--r--protocols/Skype/src/skype_events.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/protocols/Skype/src/skype_events.cpp b/protocols/Skype/src/skype_events.cpp
index 58450e7d2f..6935d107b6 100644
--- a/protocols/Skype/src/skype_events.cpp
+++ b/protocols/Skype/src/skype_events.cpp
@@ -9,8 +9,7 @@ int CSkypeProto::OnModulesLoaded(WPARAM, LPARAM)
if (::ServiceExists(MS_BB_ADDBUTTON))
{
- BBButton bbd = {0};
- bbd.cbSize = sizeof(BBButton);
+ BBButton bbd = { sizeof(bbd) };
bbd.pszModuleName = MODULE;
bbd.bbbFlags = BBBF_ISIMBUTTON | BBBF_ISRSIDEBUTTON;
@@ -31,6 +30,14 @@ int CSkypeProto::OnModulesLoaded(WPARAM, LPARAM)
int CSkypeProto::OnPreShutdown(WPARAM, LPARAM)
{
+ if (::ServiceExists(MS_BB_REMOVEBUTTON))
+ {
+ BBButton bbd = { sizeof(bbd) };
+ bbd.pszModuleName = MODULE;
+ bbd.dwButtonID = BBB_ID_CONF_SPAWN;
+ ::CallService(MS_BB_REMOVEBUTTON, 0, (LPARAM)&bbd);
+ }
+
this->SetStatus(ID_STATUS_OFFLINE);
this->UninitInstanceHookList();