Software /
code /
prosody
Comparison
plugins/mod_privacy.lua @ 2517:d0c43c4dcb3f
mod_privacy: Fix repeated presence-in (should be presence-out) - this stops the blocking of legitimate inbound presence, and inbound/outbound iqs and messages in Gajim's invisible mode (maybe I can sleep now)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 29 Jan 2010 02:24:36 +0000 |
parent | 2516:68a889016a46 |
child | 2518:c4240df1b412 |
comparison
equal
deleted
inserted
replaced
2516:68a889016a46 | 2517:d0c43c4dcb3f |
---|---|
414 if ( | 414 if ( |
415 (stanza.name == "message" and item.message) or | 415 (stanza.name == "message" and item.message) or |
416 (stanza.name == "iq" and item.iq) or | 416 (stanza.name == "iq" and item.iq) or |
417 (stanza.name == "presence" and jid_bare(stanza.attr.to) == bare_jid and item["presence-in"]) or | 417 (stanza.name == "presence" and jid_bare(stanza.attr.to) == bare_jid and item["presence-in"]) or |
418 (stanza.name == "presence" and jid_bare(stanza.attr.from) == bare_jid and item["presence-out"]) or | 418 (stanza.name == "presence" and jid_bare(stanza.attr.from) == bare_jid and item["presence-out"]) or |
419 (item.message == false and item.iq == false and item["presence-in"] == false and item["presence-in"] == false) | 419 (item.message == false and item.iq == false and item["presence-in"] == false and item["presence-out"] == false) |
420 ) then | 420 ) then |
421 apply = true; | 421 apply = true; |
422 end | 422 end |
423 if apply then | 423 if apply then |
424 local evilJid = {}; | 424 local evilJid = {}; |