mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
Merge pull request #761 from nyuszika7h/fix-nickauth-nick-list-error
NickAuth: fix error message in !list
This commit is contained in:
commit
3f9b10cc59
@ -126,8 +126,12 @@ class NickAuth(callbacks.Plugin):
|
||||
else:
|
||||
raise KeyError
|
||||
except KeyError:
|
||||
irc.error(_('You have no recognized nick on this '
|
||||
'network.'), Raise=True)
|
||||
if user == ircdb.users.getUser(msg.prefix):
|
||||
irc.error(_('You have no recognized nick on this '
|
||||
'network.'), Raise=True)
|
||||
else:
|
||||
irc.error(_('%s has no recognized nick on this '
|
||||
'network.') % user, Raise=True)
|
||||
list = wrap(list, [optional('networkIrc'),
|
||||
optional('otherUser')])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user