# HG changeset patch # User Kim Alvefur # Date 1529427417 -7200 # Node ID f84a6ad72548d98e169d7662994eb383f0ea89a2 # Parent 24e49391d4e8db38c54cfdeb606bc3f54e6c1c01 mod_minimix: Handle missing subject diff -r 24e49391d4e8 -r f84a6ad72548 mod_minimix/mod_minimix.lua --- a/mod_minimix/mod_minimix.lua Tue Jun 19 18:28:41 2018 +0200 +++ b/mod_minimix/mod_minimix.lua Tue Jun 19 18:56:57 2018 +0200 @@ -36,7 +36,10 @@ origin.send(st.clone(pres)); end -- FIXME should send ones own presence last - origin.send(st.clone(data:get(username, room_jid, "subject"))); + local subject = data:get(username, room_jid, "subject"); + if subject then + origin.send(st.clone(subject)); + end -- Send on-join stanzas from local state, somehow -- Maybe tell them their nickname was changed if it doesn't match the account one return true;