{"action":"created","issue":{"url":"https://api.github.com/repos/hexchat/hexchat/issues/1782","repository_url":"https://api.github.com/repos/hexchat/hexchat","labels_url":"https://api.github.com/repos/hexchat/hexchat/issues/1782/labels{/name}","comments_url":"https://api.github.com/repos/hexchat/hexchat/issues/1782/comments","events_url":"https://api.github.com/repos/hexchat/hexchat/issues/1782/events","html_url":"https://github.com/hexchat/hexchat/issues/1782","id":168727551,"number":1782,"title":"emit_print when same hook_print is active causes freeze","user":{"login":"Beliaar","id":728747,"avatar_url":"https://avatars.githubusercontent.com/u/728747?v=3","gravatar_id":"","url":"https://api.github.com/users/Beliaar","html_url":"https://github.com/Beliaar","followers_url":"https://api.github.com/users/Beliaar/followers","following_url":"https://api.github.com/users/Beliaar/following{/other_user}","gists_url":"https://api.github.com/users/Beliaar/gists{/gist_id}","starred_url":"https://api.github.com/users/Beliaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Beliaar/subscriptions","organizations_url":"https://api.github.com/users/Beliaar/orgs","repos_url":"https://api.github.com/users/Beliaar/repos","events_url":"https://api.github.com/users/Beliaar/events{/privacy}","received_events_url":"https://api.github.com/users/Beliaar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hexchat/hexchat/labels/unconfirmed","name":"unconfirmed","color":"444444"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-01T19:53:18Z","updated_at":"2016-08-01T21:35:31Z","closed_at":null,"body":"When I hook a text event using hook_print and then calling a emit_print with the same event anywhere - even outside of the script - hexchat will freeze/become unresponsive.\r\n\r\nExample:\r\n\r\n```python\r\nimport hexchat\r\n\r\n__module_name__ = 'test'\r\n__module_description__ = 'test'\r\n__module_version__ = '-1'\r\n\r\ndef channel_msg_cb(word, word_eol, userdata):\r\n    return\r\n\r\nhexchat.hook_print(\"Channel Message\", channel_msg_cb)\r\n```\r\nthen using `/py console`\r\n```python\r\nhexchat.emit_print(\"Channel Message\", \"Nick\", \"Message\")\r\n```\r\n\r\nWindows 10 x64 1511 Build: 10586.494\r\nHexchat x64 2.12.1-2"},"comment":{"url":"https://api.github.com/repos/hexchat/hexchat/issues/comments/236715377","html_url":"https://github.com/hexchat/hexchat/issues/1782#issuecomment-236715377","issue_url":"https://api.github.com/repos/hexchat/hexchat/issues/1782","id":236715377,"user":{"login":"TingPing","id":798838,"avatar_url":"https://avatars.githubusercontent.com/u/798838?v=3","gravatar_id":"","url":"https://api.github.com/users/TingPing","html_url":"https://github.com/TingPing","followers_url":"https://api.github.com/users/TingPing/followers","following_url":"https://api.github.com/users/TingPing/following{/other_user}","gists_url":"https://api.github.com/users/TingPing/gists{/gist_id}","starred_url":"https://api.github.com/users/TingPing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TingPing/subscriptions","organizations_url":"https://api.github.com/users/TingPing/orgs","repos_url":"https://api.github.com/users/TingPing/repos","events_url":"https://api.github.com/users/TingPing/events{/privacy}","received_events_url":"https://api.github.com/users/TingPing/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T21:35:31Z","updated_at":"2016-08-01T21:35:31Z","body":"> primary python version installed back then.\r\n\r\nPython 2.7.11 has a broken installer but they fixed that in 2.7.12"}}
{"actor":{"display_login":"TingPing"}}