From e1c693f9176d7ca471bc52bda6a2518dd49a83e8 Mon Sep 17 00:00:00 2001 From: Fernando Ortiz Date: Wed, 18 Jul 2012 21:56:16 -0500 Subject: [PATCH] Fix Error: HUBOT_IRC_NICK is not defined; try: export HUBOT_IRC_NICK='mybot' --- src/irc.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc.coffee b/src/irc.coffee index 312033e..e201865 100644 --- a/src/irc.coffee +++ b/src/irc.coffee @@ -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'")