From c93171012fbc2391d60ab8c0981b2f9c527d3bb8 Mon Sep 17 00:00:00 2001 From: Daniel DiPaolo Date: Mon, 10 May 2004 22:14:54 +0000 Subject: [PATCH] pipeSyntax is now in supybot.reply AND it's channel-specific .. fixed addAlias to reflect that --- plugins/Alias.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Alias.py b/plugins/Alias.py index fffba8b97..3c9254885 100644 --- a/plugins/Alias.py +++ b/plugins/Alias.py @@ -221,7 +221,8 @@ class Alias(callbacks.Privmsg): def addAlias(self, irc, name, alias, lock=False): if self._invalidCharsRe.search(name): raise AliasError, 'Names cannot contain spaces or square brackets.' - if conf.supybot.pipeSyntax() and '|' in name: + channel = privmsgs.getChannel(irc.msg, irc.args) + if conf.supybot.reply.pipeSyntax.get(channel)() and '|' in name: raise AliasError, 'Names cannot contain pipes.' if irc.getCallback(name): raise AliasError, 'Names cannot coincide with names of plugins.'