Skip to content

Commit

Permalink
Adding sasl options
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler McCleve authored and chrisdotcode committed Dec 6, 2017
1 parent 545ecb6 commit ec70eea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class IrcBot extends Adapter
debug: process.env.HUBOT_IRC_DEBUG?
usessl: process.env.HUBOT_IRC_USESSL?
userName: process.env.HUBOT_IRC_USERNAME
usesasl: process.env.HUBOT_IRC_USESASL?

client_options =
userName: options.userName
Expand All @@ -183,6 +184,7 @@ class IrcBot extends Adapter
certExpired: options.certExpired
floodProtection: @unfloodProtection(options.unflood),
floodProtectionDelay: @unfloodProtectionDelay(options.unflood),
sasl: options.usesasl

client_options['channels'] = options.rooms unless options.nickpass

Expand Down

0 comments on commit ec70eea

Please sign in to comment.