Skip to content

Instantly share code, notes, and snippets.

@TingPing
Last active January 2, 2016 11:09
Show Gist options
  • Save TingPing/98707dd48e5870107acb to your computer and use it in GitHub Desktop.
Save TingPing/98707dd48e5870107acb to your computer and use it in GitHub Desktop.
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