mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +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.' %
|
||||
(command, plugin.name()))
|
||||
return
|
||||
self._disabled.add(command, plugin.name())
|
||||
self._disabled.add(pluginCommand, plugin.name())
|
||||
else:
|
||||
conf.supybot.commands.disabled().add(command)
|
||||
self._disabled.add(command)
|
||||
@ -544,8 +544,7 @@ class Owner(callbacks.Plugin):
|
||||
"""
|
||||
try:
|
||||
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())
|
||||
else:
|
||||
self._disabled.remove(command)
|
||||
|
Loading…
Reference in New Issue
Block a user