mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +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 = holder()
|
||||||
self.im_func.func_name = 'log'
|
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):
|
def __call__(self, irc, msg, args):
|
||||||
text = privmsgs.getArgs(args)
|
text = privmsgs.getArgs(args)
|
||||||
log.critical(text)
|
log.critical(text)
|
||||||
@ -206,6 +200,12 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
continue
|
continue
|
||||||
registerDefaultPlugin(name, s)
|
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):
|
def isCommand(self, methodName):
|
||||||
return methodName == 'log' or \
|
return methodName == 'log' or \
|
||||||
privmsgs.CapabilityCheckingPrivmsg.isCommand(self, methodName)
|
privmsgs.CapabilityCheckingPrivmsg.isCommand(self, methodName)
|
||||||
|
Loading…
Reference in New Issue
Block a user