summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-06-13 12:55:16 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-06-13 12:55:16 +0300
commit7524e8b875b924bb3cee484e90f6cc6bc01515a4 (patch)
treebd21dc1fd1551371c41f65d52ed5a81b94b7e430 /protocols/Gadu-Gadu/src
parent09f21883efa68d69e5e2c366daa08fe93b3755d6 (diff)
code cleaning
Diffstat (limited to 'protocols/Gadu-Gadu/src')
-rw-r--r--protocols/Gadu-Gadu/src/popups.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Gadu-Gadu/src/popups.cpp b/protocols/Gadu-Gadu/src/popups.cpp
index 8d6d96e7f9..7ae48ba9c6 100644
--- a/protocols/Gadu-Gadu/src/popups.cpp
+++ b/protocols/Gadu-Gadu/src/popups.cpp
@@ -108,16 +108,16 @@ void CALLBACK sttMainThreadCallback(PVOID dwParam)
GaduProto *gg = puData->gg;
char szName[256];
+ if (puData->flags & GG_POPUP_ERROR || puData->flags & GG_POPUP_WARNING)
+ mir_snprintf(szName, "%s_%s", gg->m_szModuleName, "Error");
+ else
+ mir_snprintf(szName, "%s_%s", gg->m_szModuleName, "Notify");
+
POPUPDATACLASS ppd = { sizeof(ppd) };
ppd.szTitle.w = puData->title;
ppd.szText.w = puData->text;
ppd.PluginData = puData;
ppd.pszClassName = szName;
-
- if (puData->flags & GG_POPUP_ERROR || puData->flags & GG_POPUP_WARNING)
- mir_snprintf(szName, "%s_%s", gg->m_szModuleName, "Error");
- else
- mir_snprintf(szName, "%s_%s", gg->m_szModuleName, "Notify");
Popup_AddClass(&ppd);
}