Skip to content

Commit 977248d

Browse files
committed
Merge pull request nandub#63 from suisho/robot_name
Check true when robot.name is exist
2 parents 97ad32f + ab310f5 commit 977248d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/irc.coffee

Lines changed: 1 addition & 1 deletion
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)