diff options
author | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-01-25 22:29:53 +0100 |
---|---|---|
committer | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-01-25 22:29:53 +0100 |
commit | 73d7e5e2de6d267bc439ed82e1fae8caff142881 (patch) | |
tree | 3044efd80109a8b24a9f188eb0e963cad87e1007 /plugins/xtray/callbacks.cpp | |
parent | cfdce9f6d60cad7ade6d383947ffd16053e8658d (diff) |
some cosmetics on xtray and support for channel message alerts
Diffstat (limited to 'plugins/xtray/callbacks.cpp')
-rw-r--r-- | plugins/xtray/callbacks.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/xtray/callbacks.cpp b/plugins/xtray/callbacks.cpp index e9be49dd..636c114e 100644 --- a/plugins/xtray/callbacks.cpp +++ b/plugins/xtray/callbacks.cpp @@ -61,7 +61,7 @@ int event_cb(char *word[], void *userdata) { int iEvent = (int)userdata; - if(iEvent > 10) + if(iEvent > 10 && iEvent != 21) return XCHAT_EAT_NONE; /***************************************************************************************/ @@ -92,6 +92,11 @@ int event_cb(char *word[], void *userdata) _snprintf(szName, 64, "Hilight"); dwInfoFlags = NIIF_INFO; break; + case CHAN_MESSAGE: + _snprintf(szInfo, 512, "%s:\r\n%s", word[1], word[2]); + _snprintf(szName, 64, "Channel Message"); + dwInfoFlags = NIIF_INFO; + break; case CHAN_TOPIC_CHANGE: _snprintf(szInfo, 512, "%s has changed the topic to %s", word[1], word[2]); _snprintf(szName, 64, "Topic Change: %s", word[3]); |