def handle_irc(self, msg): """ Invokes looked up method in all loaded modules based on the parsed irc message :param msg: Parsed irc message (IRCParser) """ for plugin in self.plugins: method = lookup_hook(plugin, msg.cmd, codes) if method: ret = method(msg) if ret == plugin.LAST: break
def handle_irc(self, msg): method = lookup_hook(self, msg.cmd, codes) if method: return method(msg)