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)
This commit is contained in:
Brian S. Stephan 2010-09-04 11:55:10 -05:00
parent b1e1254564
commit b9ef46606d
1 changed files with 2 additions and 1 deletions

View File

@ -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