Dusting modules

This commit is contained in:
nemunaire 2015-07-10 23:09:54 +02:00
commit 4d51bc1fda
20 changed files with 147 additions and 147 deletions

View file

@ -77,10 +77,10 @@ def whois_entityformat(entity):
def cmd_whois(msg):
if len(msg.cmds) < 2:
if not len(msg.args):
raise IRCException("Indiquer un domaine ou une IP à whois !")
dom = msg.cmds[1]
dom = msg.args[0]
js = getJSON(URL_WHOIS % urllib.parse.quote(dom))