mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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:
|
||||
self.d[command] = None
|
||||
else:
|
||||
if self.d[command] is not None:
|
||||
self.d[command].add(plugin)
|
||||
if command in self.d:
|
||||
if self.d[command] is not None:
|
||||
self.d[command].add(plugin)
|
||||
else:
|
||||
self.d[command] = CanonicalNameSet([plugin])
|
||||
|
||||
def remove(self, command, plugin=None):
|
||||
if plugin is None:
|
||||
|
Loading…
Reference in New Issue
Block a user