summaryrefslogtreecommitdiff
path: root/src/notifymanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/notifymanager.cpp')
-rw-r--r--src/notifymanager.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/notifymanager.cpp b/src/notifymanager.cpp
index 616082b04..2dae7d280 100644
--- a/src/notifymanager.cpp
+++ b/src/notifymanager.cpp
@@ -30,7 +30,23 @@ namespace NotifyManager
{
if (message >= TYPE_END || !localChatTab)
return;
- localChatTab->chatLog(gettext(notifications[message].text),
- BY_SERVER);
+ const NotificationInfo &info = notifications[message];
+ if (info.flags == EMPTY)
+ {
+ localChatTab->chatLog(gettext(info.text),
+ BY_SERVER);
+ }
+ }
+
+ void notify(const unsigned int message, const int num)
+ {
+ if (message >= TYPE_END || !localChatTab)
+ return;
+ const NotificationInfo &info = notifications[message];
+ if (info.flags == INT)
+ {
+ localChatTab->chatLog(strprintf(gettext(info.text),
+ num), BY_SERVER);
+ }
}
}