From b9ef46606dbf7ca0d3f5e561b191fc747a785988 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sat, 4 Sep 2010 11:55:10 -0500 Subject: [PATCH] don't output anything if the aliasified command is the same as the reply. this indicates that none of the modules could actually do anything with that text, so whatever happened probably didn't fire any modules (and if it did, they didn't provide return text anyway) --- modules/Alias.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/Alias.py b/modules/Alias.py index bfc1b4c..367bf86 100644 --- a/modules/Alias.py +++ b/modules/Alias.py @@ -130,7 +130,8 @@ class Alias(Module): if alias_re.match(what): command = re.sub(alias, self.config.get(self.__class__.__name__, alias), what) reply = self.try_recursion(connection, event, nick, userhost, None, command, admin_unlocked) - return self.reply(connection, replypath, reply) + if not reply == command: + return self.reply(connection, replypath, reply) except NoOptionError: pass except NoSectionError: pass