mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Alias names can coincide with plugin names now.
This commit is contained in:
parent
e7e72d4484
commit
3e07d76dcd
@ -224,8 +224,6 @@ class Alias(callbacks.Plugin):
|
|||||||
raise AliasError, 'Names cannot contain spaces or square brackets.'
|
raise AliasError, 'Names cannot contain spaces or square brackets.'
|
||||||
if '|' in name:
|
if '|' in name:
|
||||||
raise AliasError, 'Names cannot contain pipes.'
|
raise AliasError, 'Names cannot contain pipes.'
|
||||||
if irc.getCallback(name):
|
|
||||||
raise AliasError, 'Names cannot coincide with names of plugins.'
|
|
||||||
realName = callbacks.canonicalName(name)
|
realName = callbacks.canonicalName(name)
|
||||||
if name != realName:
|
if name != realName:
|
||||||
s = format('That name isn\'t valid. Try %q instead.', realName)
|
s = format('That name isn\'t valid. Try %q instead.', realName)
|
||||||
|
Loading…
Reference in New Issue
Block a user