__module_name__ = "privflash" __module_version__ = "1.0" __module_description__ = "Flash taskbar entry on private messages" __module_author__ = "Maciej Katafiasz " import xchat def pvm_cb(word, word_eol, userdata): nick = xchat.get_info("nick") # It's silly, but *all* messages are PRIVMSGs, so we need to fish if xchat.nickcmp(word[2], nick) == 0: xchat.command("gui color 3") xchat.command("gui flash") return xchat.EAT_NONE # Priority must be LOW, otherwise wrong tab will get highlited # when new dialogue is started xchat.hook_server("PRIVMSG", pvm_cb,priority=xchat.PRI_LOW)