aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-02-20 03:52:04 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-02-20 03:52:04 +0500
commit8f0b93e738a6df64a7eb70766ff31873c880d436 (patch)
tree9245a65dff412fc09b252a093bebd3647514ed08 /plugins
parentb561d477830c46fbf4bda0b8145788c4c45ec30f (diff)
downloadprosody-8f0b93e738a6df64a7eb70766ff31873c880d436.tar.gz
prosody-8f0b93e738a6df64a7eb70766ff31873c880d436.zip
MUC: Workaround for a Gajim bug (it includes <x xmlns='http://jabber.org/protocol/muc'/> in nick change presences)
Diffstat (limited to 'plugins')
-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 bae3d476..a0252dfc 100644
--- a/plugins/mod_muc.lua
+++ b/plugins/mod_muc.lua
@@ -258,7 +258,7 @@ function handle_to_occupant(origin, stanza) -- PM, vCards, etc
end
elseif not type then -- available
if current_nick then
- if #pr == #stanza then
+ if #pr == #stanza or current_nick ~= to then
if current_nick == to then -- simple presence
log("debug", "%s broadcasted presence", current_nick);
rooms:get(room, current_nick).sessions[from] = pr;