Fixed bug with aliases that fail to load.

This commit is contained in:
Jeremy Fincher 2004-02-20 08:09:59 +00:00
parent 65bec68ec6
commit 168b438edf

View File

@ -182,7 +182,7 @@ class Alias(callbacks.Privmsg):
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.' % alias) 'Removing from the Alias database.' % alias)
del self.aliases[name] del self.aliases[alias]
del self.__class__.__call__ del self.__class__.__call__
callbacks.Privmsg.__call__(self, irc, msg) callbacks.Privmsg.__call__(self, irc, msg)