Skip to content

Commit e1c693f

Browse files
author
Fernando Ortiz
committedJul 19, 2012
Fix Error: HUBOT_IRC_NICK is not defined; try: export HUBOT_IRC_NICK='mybot'
1 parent a6fc4a0 commit e1c693f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/irc.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class IrcBot extends Adapter
7474
@bot.send command, strings...
7575

7676
checkCanStart: ->
77-
if not process.env.HUBOT_IRC_NICK or @robot.name
77+
if not process.env.HUBOT_IRC_NICK or not @robot.name
7878
throw new Error("HUBOT_IRC_NICK is not defined; try: export HUBOT_IRC_NICK='mybot'")
7979
else if not process.env.HUBOT_IRC_ROOMS
8080
throw new Error("HUBOT_IRC_ROOMS is not defined; try: export HUBOT_IRC_ROOMS='#myroom'")

0 commit comments

Comments
 (0)
Please sign in to comment.