Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 9025:0f12d46cf754
MUC: Fix stanza reference
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 12 Jul 2018 02:15:22 +0200 |
parent | 9024:43241e74bb19 |
child | 9026:91b5a5667016 |
comparison
equal
deleted
inserted
replaced
9024:43241e74bb19 | 9025:0f12d46cf754 |
---|---|
402 end, -10); | 402 end, -10); |
403 | 403 |
404 module:hook("muc-occupant-pre-join", function(event) | 404 module:hook("muc-occupant-pre-join", function(event) |
405 local nick = jid_resource(event.stanza.attr.from); | 405 local nick = jid_resource(event.stanza.attr.from); |
406 if not nick:find("%S") then | 406 if not nick:find("%S") then |
407 event.origin.send(st.error_reply(stanza, "modify", "not-allowed", "Invisible Nicknames are forbidden")); | 407 event.origin.send(st.error_reply(event.stanza, "modify", "not-allowed", "Invisible Nicknames are forbidden")); |
408 return true; | 408 return true; |
409 end | 409 end |
410 end, 1); | 410 end, 1); |
411 | 411 |
412 function room_mt:handle_first_presence(origin, stanza) | 412 function room_mt:handle_first_presence(origin, stanza) |