From 7ca2997727831fdfba1947ad83041ee4fe2e1fe7 Mon Sep 17 00:00:00 2001 From: GLolol Date: Sun, 18 May 2014 22:24:20 -0700 Subject: [PATCH] NoTrigger: don't affect PMs (fixes conflict with Services plugin) --- NoTrigger/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NoTrigger/plugin.py b/NoTrigger/plugin.py index 047ae76..0a2f2b6 100644 --- a/NoTrigger/plugin.py +++ b/NoTrigger/plugin.py @@ -55,8 +55,8 @@ class NoTrigger(callbacks.Plugin): def outFilter(self, irc, msg): if msg.command == 'PRIVMSG' and \ - (self.registryValue('enable', msg.args[0]) or not \ - ircutils.isChannel(msg.args[0])): + ircutils(isChannel(msg.args[0]) and \ + self.registryValue('enable', msg.args[0]): s = msg.args[1] prefixes = ["+", "$", ";", ".", "%", "!", "`", "\\", "@", "&", "*", "~", ":", "^", "(", ")", "-", "=", ">", "<", ","]