mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
It's not an error condition, it's appropriate.
This commit is contained in:
parent
04ae1b900f
commit
1cd4b87f1e
@ -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>]
|
||||
|
Loading…
Reference in New Issue
Block a user