mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 12:12:54 +01:00
Aka: update converters to use 'channel' instead of 'somethingWithoutSpaces'
This commit is contained in:
parent
a1a7864f54
commit
231c250b75
@ -549,7 +549,7 @@ class Aka(callbacks.Plugin):
|
|||||||
except AkaError as e:
|
except AkaError as e:
|
||||||
irc.error(str(e))
|
irc.error(str(e))
|
||||||
add = wrap(add, [getopts({
|
add = wrap(add, [getopts({
|
||||||
'channel': 'somethingWithoutSpaces',
|
'channel': 'channel',
|
||||||
}), 'something', 'text'])
|
}), 'something', 'text'])
|
||||||
|
|
||||||
def set(self, irc, msg, args, optlist, name, alias):
|
def set(self, irc, msg, args, optlist, name, alias):
|
||||||
@ -586,7 +586,7 @@ class Aka(callbacks.Plugin):
|
|||||||
except AkaError as e:
|
except AkaError as e:
|
||||||
irc.error(str(e))
|
irc.error(str(e))
|
||||||
set = wrap(set, [getopts({
|
set = wrap(set, [getopts({
|
||||||
'channel': 'somethingWithoutSpaces',
|
'channel': 'channel',
|
||||||
}), 'something', 'text'])
|
}), 'something', 'text'])
|
||||||
|
|
||||||
def remove(self, irc, msg, args, optlist, name):
|
def remove(self, irc, msg, args, optlist, name):
|
||||||
@ -608,7 +608,7 @@ class Aka(callbacks.Plugin):
|
|||||||
except AkaError as e:
|
except AkaError as e:
|
||||||
irc.error(str(e))
|
irc.error(str(e))
|
||||||
remove = wrap(remove, [getopts({
|
remove = wrap(remove, [getopts({
|
||||||
'channel': 'somethingWithoutSpaces',
|
'channel': 'channel',
|
||||||
}), 'something'])
|
}), 'something'])
|
||||||
|
|
||||||
def _checkManageCapabilities(self, irc, msg, channel):
|
def _checkManageCapabilities(self, irc, msg, channel):
|
||||||
@ -641,7 +641,7 @@ class Aka(callbacks.Plugin):
|
|||||||
else:
|
else:
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
lock = wrap(lock, [getopts({
|
lock = wrap(lock, [getopts({
|
||||||
'channel': 'somethingWithoutSpaces',
|
'channel': 'channel',
|
||||||
}), 'user', 'something'])
|
}), 'user', 'something'])
|
||||||
|
|
||||||
def unlock(self, irc, msg, args, optlist, user, name):
|
def unlock(self, irc, msg, args, optlist, user, name):
|
||||||
@ -664,7 +664,7 @@ class Aka(callbacks.Plugin):
|
|||||||
else:
|
else:
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
unlock = wrap(unlock, [getopts({
|
unlock = wrap(unlock, [getopts({
|
||||||
'channel': 'somethingWithoutSpaces',
|
'channel': 'channel',
|
||||||
}), 'user', 'something'])
|
}), 'user', 'something'])
|
||||||
|
|
||||||
def show(self, irc, msg, args, optlist, name):
|
def show(self, irc, msg, args, optlist, name):
|
||||||
@ -683,8 +683,8 @@ class Aka(callbacks.Plugin):
|
|||||||
if command:
|
if command:
|
||||||
irc.reply(command)
|
irc.reply(command)
|
||||||
else:
|
else:
|
||||||
irc.error(_('This Aka does not exist'))
|
irc.error(_('This Aka does not exist.'))
|
||||||
show = wrap(show, [getopts({'channel': 'somethingWithoutSpaces'}),
|
show = wrap(show, [getopts({'channel': 'channel'}),
|
||||||
'text'])
|
'text'])
|
||||||
|
|
||||||
def importaliasdatabase(self, irc, msg, args):
|
def importaliasdatabase(self, irc, msg, args):
|
||||||
|
Loading…
Reference in New Issue
Block a user