Better error messages in addAlias.

This commit is contained in:
Jeremy Fincher 2003-10-11 12:48:12 +00:00
parent 4cb7c18392
commit 5c1ecc2248
1 changed files with 2 additions and 2 deletions

View File

@ -200,9 +200,9 @@ class Alias(callbacks.Privmsg):
name = realName
cb = callbacks.findCallbackForCommand(irc, name)
if cb is not None and cb != self:
raise AliasError, 'A command with that name already exists.'
raise AliasError, 'A command with the name %r already exists.'%name
if name in self.frozen:
raise AliasError, 'That alias is frozen.'
raise AliasError, 'Alias %r is frozen.' % name
try:
f = makeNewAlias(name, alias)
except RecursiveAlias: