Skip to content

Commit 61d8985

Browse files
committed
using options object for consistency
using options object for consistency, thanks jimeh for the suggestion.
1 parent 2529236 commit 61d8985

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/irc.coffee

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ class IrcBot extends Adapter
4242
unflood: process.env.HUBOT_IRC_UNFLOOD?
4343
debug: process.env.HUBOT_IRC_DEBUG?
4444
usessl: process.env.HUBOT_IRC_USESSL?
45+
userName: process.env.HUBOT_IRC_USERNAME?
4546

4647
client_options =
47-
userName: process.env.HUBOT_IRC_USERNAME
48+
userName: options.userName,
4849
password: options.password,
4950
debug: options.debug,
5051
port: options.port,

0 commit comments

Comments
 (0)