diff options
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.cpp | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp index 15cd3d4451..ffe457b3ad 100644 --- a/protocols/VKontakte/src/vk_proto.cpp +++ b/protocols/VKontakte/src/vk_proto.cpp @@ -433,23 +433,16 @@ void CVkProto::InitPopups(void) void CVkProto::MsgPopup(MCONTACT hContact, const wchar_t *wszMsg, const wchar_t *wszTitle, bool err)
{
- if (ServiceExists(MS_POPUP_ADDPOPUPCLASS)) {
- char name[256];
-
- POPUPDATACLASS ppd = { sizeof(ppd) };
- ppd.pwszTitle = wszTitle;
- ppd.pwszText = wszMsg;
- ppd.pszClassName = name;
- ppd.hContact = hContact;
- ppd.PluginData = new CVkSendMsgParam(hContact);
- mir_snprintf(name, "%s_%s", m_szModuleName, err ? "Error" : "Notification");
-
- CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&ppd);
- }
- else {
- DWORD mtype = MB_OK | MB_SETFOREGROUND | (err ? MB_ICONERROR : MB_ICONINFORMATION);
- MessageBoxW(nullptr, wszMsg, wszTitle, mtype);
- }
+ char name[256];
+
+ POPUPDATACLASS ppd = { sizeof(ppd) };
+ ppd.pwszTitle = wszTitle;
+ ppd.pwszText = wszMsg;
+ ppd.pszClassName = name;
+ ppd.hContact = hContact;
+ ppd.PluginData = new CVkSendMsgParam(hContact);
+ mir_snprintf(name, "%s_%s", m_szModuleName, err ? "Error" : "Notification");
+ CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&ppd);
}
void CVkProto::MsgPopup(const wchar_t *wszMsg, const wchar_t *wszTitle, bool err)
|