From 8e97ad37075ce69f2332a14ed400408650896bff Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Mon, 30 Jun 2014 09:47:55 +0200 Subject: [PATCH 1/2] NickAuth: fix error message in !list --- plugins/NickAuth/plugin.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/NickAuth/plugin.py b/plugins/NickAuth/plugin.py index f6cdbd46f..ad3780930 100644 --- a/plugins/NickAuth/plugin.py +++ b/plugins/NickAuth/plugin.py @@ -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')]) From 38b933aee96c0305f603169f365721e2cd766764 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Mon, 30 Jun 2014 09:50:43 +0200 Subject: [PATCH 2/2] NickAuth: fix previous commit I'm too used to JavaScript. --- plugins/NickAuth/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/NickAuth/plugin.py b/plugins/NickAuth/plugin.py index ad3780930..60ac7075b 100644 --- a/plugins/NickAuth/plugin.py +++ b/plugins/NickAuth/plugin.py @@ -126,7 +126,7 @@ class NickAuth(callbacks.Plugin): else: raise KeyError except KeyError: - if user === ircdb.users.getUser(msg.prefix): + if user == ircdb.users.getUser(msg.prefix): irc.error(_('You have no recognized nick on this ' 'network.'), Raise=True) else: