summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-05 21:10:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-05 21:10:22 +0300
commitd9fddc0cfa9066eb1b5ad3f4807b37426ae6ca88 (patch)
treef09baaf9b91477d009cedc5bd77449b0fa3e3af7 /protocols/SkypeWeb
parent8a1ff32e54b39ceef22df61bda17bbfda94918fc (diff)
Popup:
- wiping out checks for service presence; - code cleaning
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r--protocols/SkypeWeb/src/skype_popups.cpp43
1 files changed, 18 insertions, 25 deletions
diff --git a/protocols/SkypeWeb/src/skype_popups.cpp b/protocols/SkypeWeb/src/skype_popups.cpp
index e20178b2a5..ba00d60709 100644
--- a/protocols/SkypeWeb/src/skype_popups.cpp
+++ b/protocols/SkypeWeb/src/skype_popups.cpp
@@ -47,35 +47,28 @@ void CSkypeProto::ShowNotification(const wchar_t *caption, const wchar_t *messag
if (Miranda_IsTerminated())
return;
- if (ServiceExists(MS_POPUP_ADDPOPUPCLASS)) {
- CMStringA className(FORMAT, "%s_", m_szModuleName);
+ CMStringA className(FORMAT, "%s_", m_szModuleName);
- switch (type) {
- case 1:
- className.Append("Error");
- break;
-
- case SKYPE_DB_EVENT_TYPE_INCOMING_CALL:
- className.Append("Call");
- break;
-
- default:
- className.Append("Notification");
- break;
- }
+ switch (type) {
+ case 1:
+ className.Append("Error");
+ break;
- POPUPDATACLASS ppd = { sizeof(ppd) };
- ppd.pwszTitle = caption;
- ppd.pwszText = message;
- ppd.pszClassName = className.GetBuffer();
- ppd.hContact = hContact;
+ case SKYPE_DB_EVENT_TYPE_INCOMING_CALL:
+ className.Append("Call");
+ break;
- CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&ppd);
- }
- else {
- DWORD mtype = MB_OK | MB_SETFOREGROUND | MB_ICONSTOP;
- MessageBox(nullptr, message, caption, mtype);
+ default:
+ className.Append("Notification");
+ break;
}
+
+ POPUPDATACLASS ppd = { sizeof(ppd) };
+ ppd.pwszTitle = caption;
+ ppd.pwszText = message;
+ ppd.pszClassName = className.GetBuffer();
+ ppd.hContact = hContact;
+ CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&ppd);
}
void CSkypeProto::ShowNotification(const wchar_t *message, MCONTACT hContact)