From edd59b5d381bd8b0daee063a99f8678f86f6b9bb Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 8 Apr 2009 20:19:09 +0100 Subject: mod_muc: Fix malformed presence stanzas (thanks elmex) --- plugins/mod_muc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_muc.lua') diff --git a/plugins/mod_muc.lua b/plugins/mod_muc.lua index 117a044b..8fbe1e91 100644 --- a/plugins/mod_muc.lua +++ b/plugins/mod_muc.lua @@ -259,7 +259,7 @@ function handle_to_occupant(origin, stanza) -- PM, vCards, etc 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 -- cgit v1.2.3