User: Add custom error message for @gpg add arguments.

This commit is contained in:
Valentin Lorentz 2013-08-16 16:23:08 +02:00
parent cee144d841
commit e120ab7eab
1 changed files with 5 additions and 2 deletions

View File

@ -438,8 +438,11 @@ class User(callbacks.Plugin):
irc.reply(reply)
else:
irc.error(reply)
add = wrap(add, ['user', 'somethingWithoutSpaces',
'somethingWithoutSpaces'])
add = wrap(add, ['user',
('somethingWithoutSpaces',
_('You must give a valid key id')),
('somethingWithoutSpaces',
_('You must give a valid key server'))])
@internationalizeDocstring
def remove(self, irc, msg, args, user, fingerprint):