Bugfix in the add.

This commit is contained in:
Jeremy Fincher 2004-08-02 11:39:16 +00:00
parent a5e473bba2
commit 5dbb3141ad

View File

@ -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: