Fixed bug with aliases that fail to load.

This commit is contained in:
Jeremy Fincher 2004-02-20 08:09:29 +00:00
parent a59beb0b93
commit 65bec68ec6

View File

@ -181,7 +181,7 @@ class Alias(callbacks.Privmsg):
self.addAlias(irc, alias, command, locked) self.addAlias(irc, alias, command, locked)
except Exception, e: except Exception, e:
self.log.exception('Exception when trying to add alias %s. ' self.log.exception('Exception when trying to add alias %s. '
'Removing from the Alias database.' % name) 'Removing from the Alias database.' % alias)
del self.aliases[name] del self.aliases[name]
del self.__class__.__call__ del self.__class__.__call__
callbacks.Privmsg.__call__(self, irc, msg) callbacks.Privmsg.__call__(self, irc, msg)