diff options
Diffstat (limited to 'protocols/Skype/src')
-rw-r--r-- | protocols/Skype/src/skype_events.cpp | 11 |
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();
|