It's not an error condition, it's appropriate.

This commit is contained in:
Jeremy Fincher 2004-08-29 06:44:57 +00:00
parent 04ae1b900f
commit 1cd4b87f1e

View File

@ -323,13 +323,13 @@ class User(callbacks.Privmsg):
try:
hostmask = irc.state.nickToHostmask(hostmask)
except KeyError:
irc.errorNoUser()
irc.reply('I couldn\'t find %s in my user database.' %hostmask)
return
try:
user = ircdb.users.getUser(hostmask)
irc.reply(user.name)
except KeyError:
irc.errorNoUser()
irc.reply('I couldn\'t find %s in my user database.' % hostmask)
def hostmasks(self, irc, msg, args):
"""[<name>]