#1497 mod_muc_mam: Traceback storing message from room in non-anonymous room
Reporter
Zash
Owner
Zash
Created
Updated
Stars
★ (1)
Tags
Milestone-0.11
Status-Fixed
Type-Defect
Priority-Medium
Zash
on
1. Enable mod_muc_moderation
2. Configure room as whois=anyone
3. Moderate a message
19:47:09 c2s562619bc2e80errorTraceback[c2s]: plugins/mod_muc_mam.lua:364: attempt to index a nil value (field ?)
stack traceback:
plugins/mod_muc_mam.lua:364: in upvalue save_to_history
plugins/mod_muc_mam.lua:415: in field ?
./util/events.lua:79: in function <./util/events.lua:75>
(...tail calls...)
plugins/muc/history.lib.lua:198: in field ?
./util/events.lua:79: in function <./util/events.lua:75>
(...tail calls...)
plugins/muc/muc.lib.lua:173: in method broadcast_message
../modules/mod_muc_moderation/mod_muc_moderation.lua:112: in field ?
./util/events.lua:79: in function <./util/events.lua:75>
(...tail calls...)
./util/events.lua:79: in function <./util/events.lua:75>
(...tail calls...)
./core/stanza_router.lua:188: in upvalue core_post_stanza
./core/stanza_router.lua:128: in upvalue core_process_stanza
plugins/mod_c2s.lua:283: in upvalue func
./util/async.lua:127: in function <./util/async.lua:125>
1. Enable mod_muc_moderation 2. Configure room as whois=anyone 3. Moderate a message 19:47:09 c2s562619bc2e80errorTraceback[c2s]: plugins/mod_muc_mam.lua:364: attempt to index a nil value (field ?) stack traceback: plugins/mod_muc_mam.lua:364: in upvalue save_to_history plugins/mod_muc_mam.lua:415: in field ? ./util/events.lua:79: in function <./util/events.lua:75> (...tail calls...) plugins/muc/history.lib.lua:198: in field ? ./util/events.lua:79: in function <./util/events.lua:75> (...tail calls...) plugins/muc/muc.lib.lua:173: in method broadcast_message ../modules/mod_muc_moderation/mod_muc_moderation.lua:112: in field ? ./util/events.lua:79: in function <./util/events.lua:75> (...tail calls...) ./util/events.lua:79: in function <./util/events.lua:75> (...tail calls...) ./core/stanza_router.lua:188: in upvalue core_post_stanza ./core/stanza_router.lua:128: in upvalue core_process_stanza plugins/mod_c2s.lua:283: in upvalue func ./util/async.lua:127: in function <./util/async.lua:125>
I fix!
ChangesFixed in https://hg.prosody.im/0.11/rev/5376f882cf82
Changes