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:
|
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>]
|
||||||
|
Loading…
Reference in New Issue
Block a user