# HG changeset patch # User Matthew Wild # Date 1239218349 -3600 # Node ID 8bc06338aac3ca5eaba01a75f232fcaa116efba1 # Parent 3296db2ad4a0f19d1c3e661e57869b803dd1fd6f mod_muc: Fix malformed presence stanzas (thanks elmex) diff -r 3296db2ad4a0 -r 8bc06338aac3 plugins/mod_muc.lua --- a/plugins/mod_muc.lua Wed Apr 08 20:12:40 2009 +0100 +++ b/plugins/mod_muc.lua Wed Apr 08 20:19:09 2009 +0100 @@ -259,7 +259,7 @@ end else -- possible rejoin log("debug", "%s had connection replaced", current_nick); - handle_to_occupant(origin, st.presence({type='unavailable', from=from, to=to}):tag('status'):text('Replaced by new connection')); -- send unavailable + handle_to_occupant(origin, st.presence({type='unavailable', from=from, to=to}):tag('status'):text('Replaced by new connection'):up()); -- send unavailable handle_to_occupant(origin, stanza); -- resend available end else -- enter room