From 231c250b75357988cdc48ab91656c3043f9fdcec Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 22 Dec 2014 19:57:26 -0800 Subject: [PATCH] Aka: update converters to use 'channel' instead of 'somethingWithoutSpaces' --- plugins/Aka/plugin.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/Aka/plugin.py b/plugins/Aka/plugin.py index e5d939039..f87390cbb 100644 --- a/plugins/Aka/plugin.py +++ b/plugins/Aka/plugin.py @@ -549,7 +549,7 @@ class Aka(callbacks.Plugin): except AkaError as e: irc.error(str(e)) add = wrap(add, [getopts({ - 'channel': 'somethingWithoutSpaces', + 'channel': 'channel', }), 'something', 'text']) def set(self, irc, msg, args, optlist, name, alias): @@ -586,7 +586,7 @@ class Aka(callbacks.Plugin): except AkaError as e: irc.error(str(e)) set = wrap(set, [getopts({ - 'channel': 'somethingWithoutSpaces', + 'channel': 'channel', }), 'something', 'text']) def remove(self, irc, msg, args, optlist, name): @@ -608,7 +608,7 @@ class Aka(callbacks.Plugin): except AkaError as e: irc.error(str(e)) remove = wrap(remove, [getopts({ - 'channel': 'somethingWithoutSpaces', + 'channel': 'channel', }), 'something']) def _checkManageCapabilities(self, irc, msg, channel): @@ -641,7 +641,7 @@ class Aka(callbacks.Plugin): else: irc.replySuccess() lock = wrap(lock, [getopts({ - 'channel': 'somethingWithoutSpaces', + 'channel': 'channel', }), 'user', 'something']) def unlock(self, irc, msg, args, optlist, user, name): @@ -664,7 +664,7 @@ class Aka(callbacks.Plugin): else: irc.replySuccess() unlock = wrap(unlock, [getopts({ - 'channel': 'somethingWithoutSpaces', + 'channel': 'channel', }), 'user', 'something']) def show(self, irc, msg, args, optlist, name): @@ -683,8 +683,8 @@ class Aka(callbacks.Plugin): if command: irc.reply(command) else: - irc.error(_('This Aka does not exist')) - show = wrap(show, [getopts({'channel': 'somethingWithoutSpaces'}), + irc.error(_('This Aka does not exist.')) + show = wrap(show, [getopts({'channel': 'channel'}), 'text']) def importaliasdatabase(self, irc, msg, args):