mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Bugfix in the add.
This commit is contained in:
parent
a5e473bba2
commit
5dbb3141ad
@ -775,8 +775,11 @@ class DisabledCommands(object):
|
|||||||
if plugin is None:
|
if plugin is None:
|
||||||
self.d[command] = None
|
self.d[command] = None
|
||||||
else:
|
else:
|
||||||
if self.d[command] is not None:
|
if command in self.d:
|
||||||
self.d[command].add(plugin)
|
if self.d[command] is not None:
|
||||||
|
self.d[command].add(plugin)
|
||||||
|
else:
|
||||||
|
self.d[command] = CanonicalNameSet([plugin])
|
||||||
|
|
||||||
def remove(self, command, plugin=None):
|
def remove(self, command, plugin=None):
|
||||||
if plugin is None:
|
if plugin is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user