Default to msg.nick.

This commit is contained in:
Jeremy Fincher 2004-08-12 18:53:11 +00:00
parent 6964a64c1b
commit f45c3f5923

View File

@ -108,8 +108,9 @@ class Nickometer(callbacks.Privmsg):
Tells you how lame said nick is. Tells you how lame said nick is.
""" """
score = 0L score = 0L
nick = privmsgs.getArgs(args, required=0, optional=1)
nick = privmsgs.getArgs(args) if not nick:
nick = msg.nick
originalNick = nick originalNick = nick
if not nick: if not nick:
irc.error('Give me a nick to judge as the argument, please.') irc.error('Give me a nick to judge as the argument, please.')