mirror of https://github.com/Mikaela/Limnoria.git
Fixed some bugz0rs.
This commit is contained in:
parent
d59da5a0cb
commit
7f87c1e40a
|
@ -128,6 +128,7 @@ def registerDefaultPlugin(command, plugin):
|
||||||
command = callbacks.canonicalName(command)
|
command = callbacks.canonicalName(command)
|
||||||
conf.registerGlobalValue(conf.supybot.commands.defaultPlugins,
|
conf.registerGlobalValue(conf.supybot.commands.defaultPlugins,
|
||||||
command, registry.String(plugin, ''))
|
command, registry.String(plugin, ''))
|
||||||
|
conf.supybot.commands.defaultPlugins.get(command).setValue(plugin)
|
||||||
|
|
||||||
registerDefaultPlugin('ignore', 'Admin')
|
registerDefaultPlugin('ignore', 'Admin')
|
||||||
registerDefaultPlugin('unignore', 'Admin')
|
registerDefaultPlugin('unignore', 'Admin')
|
||||||
|
@ -399,7 +400,11 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
||||||
registerDefaultPlugin(command, plugin)
|
registerDefaultPlugin(command, plugin)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
irc.reply(conf.supybot.commands.defaultPlugins.get(command)())
|
irc.reply(conf.supybot.commands.defaultPlugins.get(command)())
|
||||||
|
except registry.NonExistentRegistryEntry:
|
||||||
|
s = 'I don\'t have a default plugin set for that command.'
|
||||||
|
irc.error(s)
|
||||||
|
|
||||||
def ircquote(self, irc, msg, args):
|
def ircquote(self, irc, msg, args):
|
||||||
"""<string to be sent to the server>
|
"""<string to be sent to the server>
|
||||||
|
|
Loading…
Reference in New Issue