Software /
code /
prosody
Changeset
9354:b042aa047d80
mod_scansion_record: Correctly retrieve resource
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Sep 2018 14:07:49 +0200 |
parents | 9353:02ae04efab0f |
children | 9355:a31e0d549b74 |
files | plugins/mod_scansion_record.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_scansion_record.lua Sat Sep 22 14:05:59 2018 +0200 +++ b/plugins/mod_scansion_record.lua Sat Sep 22 14:07:49 2018 +0200 @@ -42,11 +42,11 @@ }; end local user = users[session.username]; - local device = user.devices[event.resource]; + local device = user.devices[session.resource]; if not device then user.n_devices = user.n_devices + 1; device = devices[user.n_devices] or ("device"..id.short()); - user.devices[event.resource] = device; + user.devices[session.resource] = device; end session.scansion_character = user.character; session.scansion_device = device;