__module_name__ = "xchat-notify" __module_version__ = "1.0" __module_description__ = "Use libnotify to show messages directed to you" __module_author__ = "Gustavo Varela" import xchat import os def chanmsg_cb(word, word_eol, userdata): chan = xchat.get_info("channel") os.system("/usr/bin/notify-send \"%s on %s says:\" \"%s\" " % (word[0],chan,word[1])) xchat.hook_print("Channel Msg Hilight", chanmsg_cb)