aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-08 20:19:09 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-08 20:19:09 +0100
commitedd59b5d381bd8b0daee063a99f8678f86f6b9bb (patch)
treeff389c9b719436dc07795b7b7414744c1b397e0d
parented0da8eb5621274bae8b33b75bc4ac07aca40f80 (diff)
downloadprosody-edd59b5d381bd8b0daee063a99f8678f86f6b9bb.tar.gz
prosody-edd59b5d381bd8b0daee063a99f8678f86f6b9bb.zip
mod_muc: Fix malformed presence stanzas (thanks elmex)
-rw-r--r--plugins/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
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