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}"