Skip to content

Commit

Permalink
Check true when robot.name is exist
Browse files Browse the repository at this point in the history
  • Loading branch information
suisho committed Feb 13, 2013
1 parent 97ad32f commit ab310f5
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 @@ -95,7 +95,7 @@ class IrcBot extends Adapter
@bot.send command, strings...

checkCanStart: ->
if not process.env.HUBOT_IRC_NICK or not @robot.name
if not process.env.HUBOT_IRC_NICK and 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 ab310f5

Please sign in to comment.