This commit is contained in:
Jeremy Fincher 2004-01-18 04:55:18 +00:00
parent 7c9675269d
commit 79fb00d8d6
1 changed files with 4 additions and 4 deletions

View File

@ -142,12 +142,12 @@ class Herald(callbacks.Privmsg, configurable.Mixin):
def doPart(self, irc, msg):
try:
id = self._getId(msg.prefix)
id = self._getId(irc, msg.prefix)
self.lastParts[(id, msg.args[0])] = time.time()
except KeyError:
pass
def _getId(self, userNickHostmask):
def _getId(self, irc, userNickHostmask):
try:
id = ircdb.users.getUserId(userNickHostmask)
except KeyError:
@ -168,7 +168,7 @@ class Herald(callbacks.Privmsg, configurable.Mixin):
channel = privmsgs.getChannel(msg, args)
(userNickHostmask, herald) = privmsgs.getArgs(args, required=2)
try:
id = self._getId(userNickHostmask)
id = self._getId(irc, userNickHostmask)
except KeyError:
irc.errorNoUser()
return
@ -186,7 +186,7 @@ class Herald(callbacks.Privmsg, configurable.Mixin):
channel = privmsgs.getChannel(msg, args)
userNickHostmask = privmsgs.getArgs(args)
try:
id = self._getId(userNickHostmask)
id = self._getId(irc, userNickHostmask)
except KeyError:
irc.errorNoUser()
return