Browse files

Merge pull request #99 from markpasc/irc-nick-default

Use the bot's address name for the IRC nick if one isn't specified
  • Loading branch information...
2 parents 4dbb6b9 + 062b671 commit 1966e3948ace606efb297508c93175713fb43089 @atmos atmos committed Oct 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hubot/irc.coffee
View
2 src/hubot/irc.coffee
@@ -30,7 +30,7 @@ class IrcBot extends Robot
self = @
options =
- nick: process.env.HUBOT_IRC_NICK
+ nick: process.env.HUBOT_IRC_NICK or @name
port: process.env.HUBOT_IRC_PORT
rooms: process.env.HUBOT_IRC_ROOMS.split(",")
server: process.env.HUBOT_IRC_SERVER

0 comments on commit 1966e39

Please sign in to comment.