aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_scansion_record.lua4
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;