Fix wrong assumption

This commit is contained in:
rnhmjoj 2016-04-14 18:48:32 +02:00
parent 23b1119f8e
commit 50b62c55af
No known key found for this signature in database
GPG Key ID: 362BB82B7E496B7C

View File

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