Detect campfire

This commit is contained in:
rnhmjoj 2016-04-14 16:10:26 +02:00
parent ad89098531
commit 23b1119f8e
No known key found for this signature in database
GPG Key ID: 362BB82B7E496B7C

View File

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