Created
July 13, 2014 08:39
-
-
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>
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
__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