mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Fixed bug #878955.
This commit is contained in:
parent
7c9675269d
commit
79fb00d8d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user