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) irc.reply(reply)
else: else:
irc.error(reply) irc.error(reply)
add = wrap(add, ['user', 'somethingWithoutSpaces', add = wrap(add, ['user',
'somethingWithoutSpaces']) ('somethingWithoutSpaces',
_('You must give a valid key id')),
('somethingWithoutSpaces',
_('You must give a valid key server'))])
@internationalizeDocstring @internationalizeDocstring
def remove(self, irc, msg, args, user, fingerprint): def remove(self, irc, msg, args, user, fingerprint):