Fixed a few errors found by PyChecker

This commit is contained in:
Jeremy Fincher 2003-03-28 07:55:21 +00:00
parent b943dafd29
commit ce03a98ae9
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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))