Fix wrong assumption

This commit is contained in:
rnhmjoj 2016-04-14 18:48:32 +02:00
parent b0eac377ce
commit ec8bcd6e3d

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