Skip to content

Commit

Permalink
Merging fix for NICK check and setting bots name so it responds to it…
Browse files Browse the repository at this point in the history
…s own name
  • Loading branch information
jgable committed Jul 19, 2012
2 parents 2b0dbb9 + e1c693f commit 7822ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class IrcBot extends Adapter
@bot.send command, strings...

checkCanStart: ->
if not (process.env.HUBOT_IRC_NICK or @robot.name)
if not process.env.HUBOT_IRC_NICK or not @robot.name
throw new Error("HUBOT_IRC_NICK is not defined; try: export HUBOT_IRC_NICK='mybot'")
else if not process.env.HUBOT_IRC_ROOMS
throw new Error("HUBOT_IRC_ROOMS is not defined; try: export HUBOT_IRC_ROOMS='#myroom'")
Expand Down

0 comments on commit 7822ba5

Please sign in to comment.