mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Retarded, I put the inFilter in the LogProxy class rather than in the Owner class\!
This commit is contained in:
parent
3010885fca
commit
516d130f1e
12
src/Owner.py
12
src/Owner.py
@ -164,12 +164,6 @@ class LogProxy(object):
|
||||
self.im_func = holder()
|
||||
self.im_func.func_name = 'log'
|
||||
|
||||
def inFilter(self, irc, msg):
|
||||
if msg.command == 'PRIVMSG' and msg.nick == irc.nick:
|
||||
self.log.warning('Somehow sent a message to myself, ignoring.')
|
||||
return None
|
||||
return msg
|
||||
|
||||
def __call__(self, irc, msg, args):
|
||||
text = privmsgs.getArgs(args)
|
||||
log.critical(text)
|
||||
@ -206,6 +200,12 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
||||
continue
|
||||
registerDefaultPlugin(name, s)
|
||||
|
||||
def inFilter(self, irc, msg):
|
||||
if msg.command == 'PRIVMSG' and msg.nick == irc.nick:
|
||||
self.log.warning('Somehow sent a message to myself, ignoring.')
|
||||
return None
|
||||
return msg
|
||||
|
||||
def isCommand(self, methodName):
|
||||
return methodName == 'log' or \
|
||||
privmsgs.CapabilityCheckingPrivmsg.isCommand(self, methodName)
|
||||
|
Loading…
Reference in New Issue
Block a user