Created
October 7, 2010 16:57
-
-
Save MoriTanosuke/615453 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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