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.

This commit is contained in:
Jeremy Fincher 2003-11-04 17:34:48 +00:00
parent 5f2f970163
commit 8474b10f32
2 changed files with 3 additions and 0 deletions

View File

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

View File

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