aeirola / slack-irc-client

Use Slack as your IRC client
87 stars 16 forks source link

Identifying via SASL #26

Closed Tehnix closed 6 years ago

Tehnix commented 6 years ago

To connect to Freenode from an AWS instance, you need to identify via SASL. Is this supported currently, or would it be something that would be fairly trivial to add?

Tehnix commented 6 years ago

Actually, because of the way you just parse all options into JSON, it is already supported, just not documented.

From http://node-irc.readthedocs.io/en/latest/API.html#client you can see the options you need. My What I do string ended up looking like,

{
     "server": "irc.freenode.net", 
     "port": 6697, 
     "userName": "NICKNAME", 
     "nsPassword": "PASSWORD", 
     "sasl": true, 
     "nick": "NICKNAME",
     "password": "PASSWORD", 
     "realName": "MY REAL NAME", 
     "secure": true 
}

This should probably be documented. I'll add a PR.