{"action":"created","issue":{"url":"https://api.github.com/repos/insomniacslk/irc-slack/issues/38","repository_url":"https://api.github.com/repos/insomniacslk/irc-slack","labels_url":"https://api.github.com/repos/insomniacslk/irc-slack/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/insomniacslk/irc-slack/issues/38/comments","events_url":"https://api.github.com/repos/insomniacslk/irc-slack/issues/38/events","html_url":"https://github.com/insomniacslk/irc-slack/issues/38","id":364998966,"node_id":"MDU6SXNzdWUzNjQ5OTg5NjY=","number":38,"title":"ZNC having issues with too long of a message","user":{"login":"Syloq","id":1640713,"node_id":"MDQ6VXNlcjE2NDA3MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1640713?v=4","gravatar_id":"","url":"https://api.github.com/users/Syloq","html_url":"https://github.com/Syloq","followers_url":"https://api.github.com/users/Syloq/followers","following_url":"https://api.github.com/users/Syloq/following{/other_user}","gists_url":"https://api.github.com/users/Syloq/gists{/gist_id}","starred_url":"https://api.github.com/users/Syloq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syloq/subscriptions","organizations_url":"https://api.github.com/users/Syloq/orgs","repos_url":"https://api.github.com/users/Syloq/repos","events_url":"https://api.github.com/users/Syloq/events{/privacy}","received_events_url":"https://api.github.com/users/Syloq/received_events","type":"User","site_admin":false},"labels":[{"id":887798628,"node_id":"MDU6TGFiZWw4ODc3OTg2Mjg=","url":"https://api.github.com/repos/insomniacslk/irc-slack/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"insomniacslk","id":2356960,"node_id":"MDQ6VXNlcjIzNTY5NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/2356960?v=4","gravatar_id":"","url":"https://api.github.com/users/insomniacslk","html_url":"https://github.com/insomniacslk","followers_url":"https://api.github.com/users/insomniacslk/followers","following_url":"https://api.github.com/users/insomniacslk/following{/other_user}","gists_url":"https://api.github.com/users/insomniacslk/gists{/gist_id}","starred_url":"https://api.github.com/users/insomniacslk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insomniacslk/subscriptions","organizations_url":"https://api.github.com/users/insomniacslk/orgs","repos_url":"https://api.github.com/users/insomniacslk/repos","events_url":"https://api.github.com/users/insomniacslk/events{/privacy}","received_events_url":"https://api.github.com/users/insomniacslk/received_events","type":"User","site_admin":false},"assignees":[{"login":"insomniacslk","id":2356960,"node_id":"MDQ6VXNlcjIzNTY5NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/2356960?v=4","gravatar_id":"","url":"https://api.github.com/users/insomniacslk","html_url":"https://github.com/insomniacslk","followers_url":"https://api.github.com/users/insomniacslk/followers","following_url":"https://api.github.com/users/insomniacslk/following{/other_user}","gists_url":"https://api.github.com/users/insomniacslk/gists{/gist_id}","starred_url":"https://api.github.com/users/insomniacslk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insomniacslk/subscriptions","organizations_url":"https://api.github.com/users/insomniacslk/orgs","repos_url":"https://api.github.com/users/insomniacslk/repos","events_url":"https://api.github.com/users/insomniacslk/events{/privacy}","received_events_url":"https://api.github.com/users/insomniacslk/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-09-28T18:42:08Z","updated_at":"2018-11-06T20:49:16Z","closed_at":null,"author_association":"NONE","body":"Today I was trying to connect to a slack where a channel that I was forced to belong to had 450+ users in it. The problem is that my ZNC bouncer was disconnecting because a command was being sent to the client that exceeded its limits. Here is an example of the messages that are being sent:\r\n\r\nSending numeric reply: :irc-slack-name-here 353 myUsername = #general :(list of users that is 450+ characters)\r\n\r\nAccording to [this](https://github.com/znc/znc/issues/971#issuecomment-108527488) bug report that the server shouldn't send over 512 total bytes per message in total (according to the RFC). I believe that ZNC (further on in that bug) allows up to 1024 total bytes per message.\r\n\r\nI believe the solution would be to chunk the data (512 byte chunks) sent to the client so that they don't freak out in any manner. The method in question is [here](https://github.com/insomniacslk/irc-slack/blob/edca6dde10e062649a69b023a174abeba749e9a0/irc_server.go#L89).\r\n\r\nSorry for the multiple bugs today."},"comment":{"url":"https://api.github.com/repos/insomniacslk/irc-slack/issues/comments/436403313","html_url":"https://github.com/insomniacslk/irc-slack/issues/38#issuecomment-436403313","issue_url":"https://api.github.com/repos/insomniacslk/irc-slack/issues/38","id":436403313,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjQwMzMxMw==","user":{"login":"insomniacslk","id":2356960,"node_id":"MDQ6VXNlcjIzNTY5NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/2356960?v=4","gravatar_id":"","url":"https://api.github.com/users/insomniacslk","html_url":"https://github.com/insomniacslk","followers_url":"https://api.github.com/users/insomniacslk/followers","following_url":"https://api.github.com/users/insomniacslk/following{/other_user}","gists_url":"https://api.github.com/users/insomniacslk/gists{/gist_id}","starred_url":"https://api.github.com/users/insomniacslk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insomniacslk/subscriptions","organizations_url":"https://api.github.com/users/insomniacslk/orgs","repos_url":"https://api.github.com/users/insomniacslk/repos","events_url":"https://api.github.com/users/insomniacslk/events{/privacy}","received_events_url":"https://api.github.com/users/insomniacslk/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T20:49:16Z","updated_at":"2018-11-06T20:49:16Z","author_association":"OWNER","body":"@Syloq , do you have an example of how chunking should happen? "}}
{"actor":{"display_login":"insomniacslk"}}