{"action":"closed","issue":{"url":"https://api.github.com/repos/znc/znc/issues/1186","repository_url":"https://api.github.com/repos/znc/znc","labels_url":"https://api.github.com/repos/znc/znc/issues/1186/labels{/name}","comments_url":"https://api.github.com/repos/znc/znc/issues/1186/comments","events_url":"https://api.github.com/repos/znc/znc/issues/1186/events","html_url":"https://github.com/znc/znc/issues/1186","id":117667502,"number":1186,"title":"HALT/HALTCORE not blocking message when returned from OnRaw in modpython module","user":{"login":"magus424","id":384053,"avatar_url":"https://avatars.githubusercontent.com/u/384053?v=3","gravatar_id":"","url":"https://api.github.com/users/magus424","html_url":"https://github.com/magus424","followers_url":"https://api.github.com/users/magus424/followers","following_url":"https://api.github.com/users/magus424/following{/other_user}","gists_url":"https://api.github.com/users/magus424/gists{/gist_id}","starred_url":"https://api.github.com/users/magus424/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magus424/subscriptions","organizations_url":"https://api.github.com/users/magus424/orgs","repos_url":"https://api.github.com/users/magus424/repos","events_url":"https://api.github.com/users/magus424/events{/privacy}","received_events_url":"https://api.github.com/users/magus424/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-11-18T19:53:18Z","updated_at":"2016-11-16T16:17:17Z","closed_at":"2016-11-16T16:17:17Z","body":"Ubuntu 14.04\nZNC 1.6.2 - IPv6: yes, SSL: yes, DNS: threads, charset: no\n\nI've been trying to fix a glitch in an IRC server I use, so I'd like to stop a raw message and replace it with another. Nothing I've attempted has worked. The messages are being properly detected (I have a more complex version w/logging and the logs properly fire on the message), but returning znc.HALT and znc.HALTCORE seem to do nothing.\n\nBy all accounts, I would expect this to work (a similar strategy is being used in the block_motd module), but nothing works and the message continues on as if the handler wasn't here (except now the additional message is present)\n\n```\nimport znc\n\n\nclass SlackPong(znc.Module):\n    description = \"Stop Slack's annoying PONG messages\"\n    module_types = [znc.CModInfo.NetworkModule]\n\n    def OnRaw(self, line):\n        if str(line).find(\"PONG :TIMEOUTCHECK\") > -1:\n            self.PutUser(\":irc.tinyspeck.com PONG irc.tinyspeck.com :TIMEOUTCHECK\")\n            return znc.HALT\n        return znc.CONTINUE\n```\n## <bountysource-plugin>\n\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28369735-halt-haltcore-not-blocking-message-when-returned-from-onraw-in-modpython-module?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github).\n</bountysource-plugin>\n"}}
{"actor":{"display_login":"DarthGandalf"}}