Merge pull request #761 from nyuszika7h/fix-nickauth-nick-list-error

NickAuth: fix error message in !list
This commit is contained in:
Valentin Lorentz 2014-06-30 13:17:13 +02:00
commit 3f9b10cc59

View File

@ -126,8 +126,12 @@ class NickAuth(callbacks.Plugin):
else: else:
raise KeyError raise KeyError
except KeyError: except KeyError:
if user == ircdb.users.getUser(msg.prefix):
irc.error(_('You have no recognized nick on this ' irc.error(_('You have no recognized nick on this '
'network.'), Raise=True) 'network.'), Raise=True)
else:
irc.error(_('%s has no recognized nick on this '
'network.') % user, Raise=True)
list = wrap(list, [optional('networkIrc'), list = wrap(list, [optional('networkIrc'),
optional('otherUser')]) optional('otherUser')])