Skip to content

Commit

Permalink
Merge pull request nandub#63 from suisho/robot_name
Browse files Browse the repository at this point in the history
Check true when robot.name is exist
  • Loading branch information
jgable committed Feb 13, 2013
2 parents 97ad32f + ab310f5 commit 977248d
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 977248d

Please sign in to comment.