Skip to content

Instantly share code, notes, and snippets.

@cr5315
Created July 13, 2014 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cr5315/0abe169ba0ffde77bc05 to your computer and use it in GitHub Desktop.
Save cr5315/0abe169ba0ffde77bc05 to your computer and use it in GitHub Desktop.
I got tired of typing /whois <nick> and /ns info <nick>, so now I just type /whoisns <nick>
__module_name__ = "whois and ns info"
__module_version__ = "1.0"
__module_description__ = "performs a whois and ns info"
import hexchat
def who(word, word_eol, userdata):
if len(word) < 2:
print("I need a nick")
else:
nick = word_eol[1]
commands = [ "whois ", " ns info " ]
for cmd in commands:
hexchat.command(cmd + nick)
return hexchat.EAT_ALL
hexchat.hook_command("WHOISNS", who, help="/WHOISNS <nick>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment