From ab310f50e889d02e902528a5b6aa60293e207580 Mon Sep 17 00:00:00 2001 From: suisho Date: Thu, 14 Feb 2013 03:44:12 +0900 Subject: [PATCH] Check true when robot.name is exist --- src/irc.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc.coffee b/src/irc.coffee index fc04fbe..e6d7e5e 100644 --- a/src/irc.coffee +++ b/src/irc.coffee @@ -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'")