Skip to content

Commit ab310f5

Browse files
committed
Check true when robot.name is exist
1 parent 97ad32f commit ab310f5

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
@@ -95,7 +95,7 @@ class IrcBot extends Adapter
9595
@bot.send command, strings...
9696

9797
checkCanStart: ->
98-
if not process.env.HUBOT_IRC_NICK or not @robot.name
98+
if not process.env.HUBOT_IRC_NICK and not @robot.name
9999
throw new Error("HUBOT_IRC_NICK is not defined; try: export HUBOT_IRC_NICK='mybot'")
100100
else if not process.env.HUBOT_IRC_ROOMS
101101
throw new Error("HUBOT_IRC_ROOMS is not defined; try: export HUBOT_IRC_ROOMS='#myroom'")

0 commit comments

Comments
 (0)