mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 09:29:24 +01:00
Really fix enable.
This commit is contained in:
parent
8ccf3ade45
commit
53cc36bd9c
@ -528,7 +528,7 @@ class Owner(callbacks.Plugin):
|
|||||||
irc.error('%s is not a command in the %s plugin.' %
|
irc.error('%s is not a command in the %s plugin.' %
|
||||||
(command, plugin.name()))
|
(command, plugin.name()))
|
||||||
return
|
return
|
||||||
self._disabled.add(command, plugin.name())
|
self._disabled.add(pluginCommand, plugin.name())
|
||||||
else:
|
else:
|
||||||
conf.supybot.commands.disabled().add(command)
|
conf.supybot.commands.disabled().add(command)
|
||||||
self._disabled.add(command)
|
self._disabled.add(command)
|
||||||
@ -544,8 +544,7 @@ class Owner(callbacks.Plugin):
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
if plugin:
|
if plugin:
|
||||||
# This is unnecessary and was breaking things.
|
command = '%s.%s' % (plugin.name(), command)
|
||||||
#command = '%s.%s' % (plugin.name(), command)
|
|
||||||
self._disabled.remove(command, plugin.name())
|
self._disabled.remove(command, plugin.name())
|
||||||
else:
|
else:
|
||||||
self._disabled.remove(command)
|
self._disabled.remove(command)
|
||||||
|
Loading…
Reference in New Issue
Block a user