Skip to content

Commit

Permalink
Adding Real Name as an environmental variable
Browse files Browse the repository at this point in the history
Useful for networks where the Real Name of a bot must correspond to a
non-bot user
  • Loading branch information
johnmichel committed Nov 8, 2012
1 parent 3e45fc1 commit 83a7848
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 @@ -85,6 +85,7 @@ class IrcBot extends Adapter

options =
nick: process.env.HUBOT_IRC_NICK or @robot.name
realName: process.env.HUBOT_IRC_REALNAME
port: process.env.HUBOT_IRC_PORT
rooms: process.env.HUBOT_IRC_ROOMS.split(",")
server: process.env.HUBOT_IRC_SERVER
Expand All @@ -100,6 +101,7 @@ class IrcBot extends Adapter

client_options =
userName: options.userName
realName: options.realName
password: options.password
debug: options.debug
port: options.port
Expand Down

0 comments on commit 83a7848

Please sign in to comment.