diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-22 14:07:49 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-22 14:07:49 +0200 |
commit | 8a4895c86db5f5334b12ef3464707a3fc1e8c05a (patch) | |
tree | a9b5fe30ec481f4ba0262469bbbf02e3d6839569 /plugins/mod_scansion_record.lua | |
parent | 5ffddc0b0e95378ad89bc2292826384101cde195 (diff) | |
download | prosody-8a4895c86db5f5334b12ef3464707a3fc1e8c05a.tar.gz prosody-8a4895c86db5f5334b12ef3464707a3fc1e8c05a.zip |
mod_scansion_record: Correctly retrieve resource
Diffstat (limited to 'plugins/mod_scansion_record.lua')
-rw-r--r-- | plugins/mod_scansion_record.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua index 4b807993..956e5f6c 100644 --- a/plugins/mod_scansion_record.lua +++ b/plugins/mod_scansion_record.lua @@ -42,11 +42,11 @@ module:hook("resource-bind", function (event) }; 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; |