Added a period to the invalid alias complaint.

This commit is contained in:
Jeremy Fincher 2003-10-21 19:20:47 +00:00
parent 388fae08c5
commit 52d4767601

View File

@ -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: