summary refs log tree commit diff stats
path: root/plugins/xtray/callbacks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/xtray/callbacks.cpp')
-rw-r--r--plugins/xtray/callbacks.cpp7
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]);