Permalink
Browse files

Adding a port argument to IRC adapter

  • Loading branch information...
1 parent c25ac66 commit e2495f7e664f589478a2b9bf1a1065a41e839993 @steveklabnik committed Oct 26, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/hubot/irc.coffee
View
2 src/hubot/irc.coffee
@@ -15,6 +15,7 @@ class IrcBot extends Robot
self = @
options =
server: process.env.HUBOT_IRC_SERVER
+ port: process.env.HUBOT_IRC_PORT
rooms: process.env.HUBOT_IRC_ROOMS.split(",")
nick: process.env.HUBOT_IRC_NICK
@@ -23,6 +24,7 @@ class IrcBot extends Robot
bot = new Irc.Client options.server, options.nick, {
debug: true,
channels: options.rooms,
+ port: options.port,
}
next_id = 1

2 comments on commit e2495f7

@paulcbetts

Does this still work when HUBOT_IRC_PORT is not set?

@steveklabnik

Yes, the irc library defaults to 6667.

Please sign in to comment.