Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 3 additions and 2 deletions.
  1. +3 −2 IRC.js
View
5 IRC.js
@@ -98,7 +98,7 @@ public(IRC.prototype, {
return true;
}
}.bind(this),
- 'errorcode': function(code, to, regarding, reason) {
+ 'errorcode': function(code, to, reason) {
if (['ERR_BANNEDFROMCHAN', 'ERR_INVITEONLYCHAN', 'ERR_BADCHANNELKEY',
'ERR_CHANNELISFULL', 'ERR_BADCHANMASK', 'ERR_NOSUCHCHANNEL',
'ERR_TOOMANYCHANNELS'].has(code)) {
@@ -248,7 +248,7 @@ public(IRC.prototype, {
},
quit: function(message) {
this._socket.write('QUIT :' + message + '\r\n');
- this._socket.close();
+ this._socket.end();
},
// todo: move to setter
setDebugLevel: function(level) {
@@ -424,6 +424,7 @@ private(IRC.prototype, {
},
_processServerMessage: function(line) {
this._debug(4, 'Incoming: ' + line);
+ this.emit('raw', line);
var matches = line.match(/^:([^\s]*)\s([^\s]*)\s([^\s]*)\s:\u0001([^\s]*)\s(.*)\u0001/);
if (matches) {
var handler = this._messageHandlers['CTCP_' + matches[2] + '_' + matches[4]];

No commit comments for this range

Something went wrong with that request. Please try again.