From f0e9a703ab5639c8000915f3217b3b52bbb1e720 Mon Sep 17 00:00:00 2001 From: Michele Guerini Rocco Date: Sat, 9 May 2015 12:57:05 +0200 Subject: [PATCH] More general private chat check --- scripts/meta.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/meta.coffee b/scripts/meta.coffee index ace4fd5..ececcd4 100644 --- a/scripts/meta.coffee +++ b/scripts/meta.coffee @@ -29,10 +29,10 @@ module.exports = (robot) -> results = listeners() unless message.done or (results.reduce (x, y) -> x or y) - if message.room is 'Shell' or message.room.match /user#/ + if message.room == message.user message.text = robot.name + ' ' + message.text results.push listeners()... if message not instanceof CatchAllMessage and (results.indexOf true) is -1 robot.receive new CatchAllMessage message - robot.receive = receive \ No newline at end of file + robot.receive = receive