mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Fixed a few errors found by PyChecker
This commit is contained in:
parent
b943dafd29
commit
ce03a98ae9
@ -484,7 +484,7 @@ def checkCapabilities(hostmask, capabilities, requireAll=False):
|
||||
return False
|
||||
|
||||
def getUser(irc, s):
|
||||
if ircutils.isHostmask(s):
|
||||
if ircutils.isUserHostmask(s):
|
||||
return users.getUserName(s)
|
||||
else:
|
||||
if users.hasUser(s):
|
||||
|
@ -319,7 +319,7 @@ class Irc(object):
|
||||
#debug.printf(repr(msg))
|
||||
msg = callback.outFilter(self, msg)
|
||||
if msg is None:
|
||||
s = 'outFilter %s returned None' % callbacks.name()
|
||||
s = 'outFilter %s returned None' % callback.name()
|
||||
debug.debugMsg(s)
|
||||
return None
|
||||
self.state.addMsg(self,ircmsgs.IrcMsg(msg=msg, prefix=self.prefix))
|
||||
|
Loading…
Reference in New Issue
Block a user