mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Added a period to the invalid alias complaint.
This commit is contained in:
parent
388fae08c5
commit
52d4767601
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user