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: try:
hostmask = irc.state.nickToHostmask(hostmask) hostmask = irc.state.nickToHostmask(hostmask)
except KeyError: except KeyError:
irc.errorNoUser() irc.reply('I couldn\'t find %s in my user database.' %hostmask)
return return
try: try:
user = ircdb.users.getUser(hostmask) user = ircdb.users.getUser(hostmask)
irc.reply(user.name) irc.reply(user.name)
except KeyError: except KeyError:
irc.errorNoUser() irc.reply('I couldn\'t find %s in my user database.' % hostmask)
def hostmasks(self, irc, msg, args): def hostmasks(self, irc, msg, args):
"""[<name>] """[<name>]