some cosmetics on xtray and support for channel message alerts

This commit is contained in:
berkeviktor@aol.com
2011-01-25 22:29:53 +01:00
parent cfdce9f6d6
commit 73d7e5e2de
5 changed files with 34 additions and 31 deletions

View File

@@ -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]);