Skip to content

Instantly share code, notes, and snippets.

@MoriTanosuke
Created October 7, 2010 16:57
Show Gist options
  • Save MoriTanosuke/615453 to your computer and use it in GitHub Desktop.
Save MoriTanosuke/615453 to your computer and use it in GitHub Desktop.
var huk;
function xchat_plugin_init()
{
huk = xchat_hook_server("PRIVMSG", XCHAT_PRI_NORM, "growlify", NULL);
}
function growlify(from, command, nickname, message)
{
var me = xchat_get_info("nick");
if(nickname == me) {
xchat_command("EXEC C:\\Program Files\\Growl for Windows\\growlnotify.exe /t:\"" + from + "\" " + xchat_strip(message));
}
/* don't eat this event, let other plugins and xchat see it too */
return XCHAT_EAT_NONE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment