diff --git a/plugins/Alias.py b/plugins/Alias.py index b31b9f902..d23b44b32 100644 --- a/plugins/Alias.py +++ b/plugins/Alias.py @@ -196,11 +196,13 @@ class Alias(callbacks.Privmsg): raise AliasError, 'Names cannot contain pipes.' realName = callbacks.canonicalName(name) if name != realName: - raise AliasError,'That name isn\'t valid. Try %r instead'%realName + s = 'That name isn\'t valid. Try %r instead.' % realName + raise AliasError, s name = realName cbs = callbacks.findCallbackForCommand(irc, name) if [cb for cb in cbs if cb != self]: - raise AliasError, 'A command with the name %r already exists.'%name + s = 'A command with the name %r already exists.' % name + raise AliasError, s if name in self.frozen: raise AliasError, 'Alias %r is frozen.' % name try: