From dda1b706c7b6c9ba6544efc03fd4a794df278285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9munaire?= Date: Mon, 5 Nov 2012 12:00:24 +0100 Subject: [PATCH] Alias module replace aliases only in PRIVMSG --- modules/alias/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/alias/__init__.py b/modules/alias/__init__.py index 498436d..307a1c5 100644 --- a/modules/alias/__init__.py +++ b/modules/alias/__init__.py @@ -113,7 +113,7 @@ def treat_variables(res): return True def treat_alias(msg, hooks_cache): - if (len(msg.cmds[0]) > 0 and + if msg.cmd == "PRIVMSG" and (len(msg.cmds[0]) > 0 and msg.cmds[0][1:] in DATAS.getNode("aliases").index and msg.cmds[0][1:] not in hooks_cache("cmd_hook")): msg.content = msg.content.replace(msg.cmds[0],