Skip to content

Commit

Permalink
Adding a port argument to IRC adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Oct 26, 2011
1 parent c25ac66 commit e2495f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hubot/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

2 comments on commit e2495f7

@anaisbetts
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this still work when HUBOT_IRC_PORT is not set?

@steveklabnik
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the irc library defaults to 6667.

Please sign in to comment.