diff --git a/src/Owner.py b/src/Owner.py index cc1f4a5c0..55a0a6509 100644 --- a/src/Owner.py +++ b/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)