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'")