We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6fc4a0 commit e1c693fCopy full SHA for e1c693f
src/irc.coffee
@@ -74,7 +74,7 @@ class IrcBot extends Adapter
74
@bot.send command, strings...
75
76
checkCanStart: ->
77
- if not process.env.HUBOT_IRC_NICK or @robot.name
+ if not process.env.HUBOT_IRC_NICK or not @robot.name
78
throw new Error("HUBOT_IRC_NICK is not defined; try: export HUBOT_IRC_NICK='mybot'")
79
else if not process.env.HUBOT_IRC_ROOMS
80
throw new Error("HUBOT_IRC_ROOMS is not defined; try: export HUBOT_IRC_ROOMS='#myroom'")
0 commit comments