Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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.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