Hopefully fixed the persistence problem.

This commit is contained in:
Jeremy Fincher 2004-02-16 03:51:11 +00:00
parent bfd5066ec9
commit 20b3b6ac88

View File

@ -239,6 +239,9 @@ class Alias(callbacks.Privmsg):
f = makeNewAlias(name, alias)
except RecursiveAlias:
raise AliasError, 'You can\'t define a recursive alias.'
if name in self.aliases:
# We gotta remove it so its value gets updated.
conf.supybot.plugins.Alias.aliases.unregister(name)
conf.supybot.plugins.Alias.aliases.register(name,
registry.String(alias, ''))
conf.supybot.plugins.Alias.aliases.get(name).register('locked',