{"comment":{"created_at":"2011-10-26T01:24:50Z","body":"Also, it seems possible to get things into a state where there has been no 'error' event on the stream but a 'Socket is not writable' exception can be triggered here in **user.js**...\r\n\r\n````javascript\r\n  send: function() {\r\n    if (!this.stream) return;\r\n\r\n    var message = arguments.length === 1 ?\r\n        arguments[0]\r\n      : Array.prototype.slice.call(arguments).join(' ');\r\n\r\n    this.server.log('S: [' + this.nick + '] ' + message);\r\n    try {\r\n      this.stream.write(message + '\\r\\n');\r\n    } catch (exception) {\r\n      this.server.log(exception);\r\n    }\r\n````\r\n\r\nPerhaps the catch block should trigger a QUIT as well as just logging the exception?","updated_at":"2011-10-26T01:24:50Z","url":"https://api.github.com/repos/alexyoung/ircd.js/issues/comments/2525434","id":2525434,"user":{"avatar_url":"https://secure.gravatar.com/avatar/a9bbfd66936da88aaaf549841fca7aad?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a9bbfd66936da88aaaf549841fca7aad","url":"https://api.github.com/users/jclulow","id":304070,"login":"jclulow"}},"action":"created","issue":{"number":10,"created_at":"2011-09-23T18:39:52Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"When user leaves sometimes nick is not removed from channel.  I'm not sure if it only happens when the user disconnects but that seems to be the trigger.  Thus, you end up with duplicate nicks in the channel.","comments":4,"title":"When user leaves sometimes nick is not removed from channel","updated_at":"2011-10-26T01:24:50Z","url":"https://api.github.com/repos/alexyoung/ircd.js/issues/10","id":1725689,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/ca83c31ce6a7f1b8cd7c840ed69f0242?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ca83c31ce6a7f1b8cd7c840ed69f0242","url":"https://api.github.com/users/willfred","id":1072301,"login":"willfred"},"html_url":"https://github.com/alexyoung/ircd.js/issues/10","labels":[],"state":"open"},"legacy":{"issue_id":1725689,"comment_id":2525434}}