From ec8bcd6e3d5ffc1c6c5c116023473d8dc8942dc8 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Thu, 14 Apr 2016 18:48:32 +0200 Subject: [PATCH] Fix wrong assumption --- scripts/misc.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/misc.coffee b/scripts/misc.coffee index 7c01dec..7741f0e 100644 --- a/scripts/misc.coffee +++ b/scripts/misc.coffee @@ -106,7 +106,7 @@ module.exports = (robot) -> res.send 'dovrei essere a ' + body robot.respond /con chi stai parlando/i, (res) -> - if res.message.user.name is res.message.room + if res.message.user.id is res.message.room res.send "sto parlando con te, #{sender res}" else res.send "sto parlando in #{res.message.room}, #{sender res}"