From 0db9d6fd7dc30690f4d3fb41073ad578f7ed7c0e Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 3 Feb 2004 16:47:18 +0000 Subject: [PATCH] Restrict Alias from making Aliases that coincide with plugin names. --- plugins/Alias.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/Alias.py b/plugins/Alias.py index e8e2b02f6..b7eb03e9c 100644 --- a/plugins/Alias.py +++ b/plugins/Alias.py @@ -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