Last active
January 2, 2016 11:09
-
-
Save TingPing/98707dd48e5870107acb 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
import hexchat | |
__module_name__ = "whois'd to front" | |
__module_author__ = 'TingPing' | |
__module_version__ = '0' | |
__module_description__ = "Print when you have been whois'd in the front" | |
def notice_cb(word, word_eol, userdata): | |
if 'did a /whois on you' in word_eol[3]: | |
hexchat.find_context().set() | |
hexchat.emit_print('Notice', word[4], word_eol[3][1:]) | |
return hexchat.EAT_ALL | |
hexchat.hook_server('NOTICE', notice_cb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment