Fix user chat check

This commit is contained in:
rnhmjoj 2015-05-09 15:49:47 +02:00
parent e97117362f
commit ea815ffc94

View File

@ -29,7 +29,7 @@ module.exports = (robot) ->
results = listeners() results = listeners()
unless message.done or (results.reduce (x, y) -> x or y) unless message.done or (results.reduce (x, y) -> x or y)
if message.room == message.user.name if message.room == message.user.id
message.text = robot.name + ' ' + message.text message.text = robot.name + ' ' + message.text
results.push listeners()... results.push listeners()...
if message not instanceof CatchAllMessage and (results.indexOf true) is -1 if message not instanceof CatchAllMessage and (results.indexOf true) is -1