NickAuth: Improve error message.

This commit is contained in:
Valentin Lorentz 2016-10-31 16:28:08 +01:00
parent 5b29c8c0dd
commit 1fdbc24714
1 changed files with 5 additions and 1 deletions

View File

@ -177,7 +177,11 @@ class NickAuth(callbacks.Plugin):
ircdb.users.setUser(user, flush=False)
irc.reply(_('You are now authenticated as %s.') % user.name)
else:
irc.error(_('No user has this nick on this network.'))
irc.error(_('No user of claimed the nick %s on this network. '
'If this is you, you should connect with an other '
'method and use the "nickauth nick add" command, '
'or ask the owner of the bot to do it.')
% (theiraccount,))
def doAccount(self, irc, msg):
account = msg.args[0]