mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Restrict Alias from making Aliases that coincide with plugin names.
This commit is contained in:
parent
9bf4f35a51
commit
0db9d6fd7d
@ -253,6 +253,8 @@ class Alias(callbacks.Privmsg):
|
||||
raise AliasError, 'Names cannot contain spaces or square brackets.'
|
||||
if conf.supybot.pipeSyntax() and '|' in name:
|
||||
raise AliasError, 'Names cannot contain pipes.'
|
||||
if irc.getCallback(name):
|
||||
raise AliasError, 'Names cannot coincide with names of plugins.'
|
||||
realName = callbacks.canonicalName(name)
|
||||
if name != realName:
|
||||
s = 'That name isn\'t valid. Try %r instead.' % realName
|
||||
|
Loading…
Reference in New Issue
Block a user