From 8474b10f32badefbb169e70b344fdf67babe183f Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 4 Nov 2003 17:34:48 +0000 Subject: [PATCH] Made Relay not ignore, and added a check to Owner.doPrivmsg to make sure commands can't get called by ignored people (even if noIgnore is True on the plugin with the commands. --- plugins/Relay.py | 1 + src/Owner.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/plugins/Relay.py b/plugins/Relay.py index e98f6d9dc..92ecd5652 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -120,6 +120,7 @@ def configure(onStart, afterConnect, advanced): class Relay(callbacks.Privmsg, plugins.Toggleable): + noIgnore = True priority = sys.maxint toggles = plugins.ToggleDictionary({'color': True}) def __init__(self): diff --git a/src/Owner.py b/src/Owner.py index d292dceec..652093140 100644 --- a/src/Owner.py +++ b/src/Owner.py @@ -109,6 +109,8 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg): def doPrivmsg(self, irc, msg): callbacks.Privmsg.handled = False + if ircdb.checkIgnored(msg.prefix): + return s = callbacks.addressed(irc.nick, msg) if s: try: