mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 02:24:12 +01:00
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:
parent
5f2f970163
commit
8474b10f32
@ -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):
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user