Browse files

Adding Real Name as an environmental variable

Useful for networks where the Real Name of a bot must correspond to a
non-bot user
  • Loading branch information...
1 parent 3e45fc1 commit 83a78489a2fc92ec3881c9e294a760b043c6e5b3 @johnmichel johnmichel committed Nov 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/irc.coffee
View
2 src/irc.coffee
@@ -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
@@ -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

0 comments on commit 83a7848

Please sign in to comment.