Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CAP match for some IRC daemons #515

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,14 @@ function Client(server, nick, opt) {

// for sasl
case 'CAP':
if (message.args[0] === '*' &&
message.args[1] === 'ACK' &&
message.args[2] === 'sasl ') // there's a space after sasl
// if we are debug, log output from the server
if (self.opt.debug) {
util.log(message.args[0] + '-')
util.log(message.args[1] + '-')
util.log(message.args[2] + '-')
}
if (message.args[1] === 'ACK' &&
message.args[2] === 'sasl')
self.send('AUTHENTICATE', 'PLAIN');
break;
case 'AUTHENTICATE':
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"Chris Nehren <[email protected]>",
"Henri Niemeläinen <[email protected]>",
"Alex Miles <[email protected]>",
"Simmo Saan <[email protected]>"
"Simmo Saan <[email protected]>",
"Nick Silkey <[email protected]>"
],
"repository": {
"type": "git",
Expand Down