Mercurial > prosody-hg
comparison plugins/mod_privacy.lua @ 2520:f28fbc93eb54
Backed out changeset a4f9ed3f912e (you didn't see this)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 29 Jan 2010 03:06:37 +0000 |
| parents | a4f9ed3f912e |
| children | 9f9d605ef65d |
comparison
equal
deleted
inserted
replaced
| 2519:a4f9ed3f912e | 2520:f28fbc93eb54 |
|---|---|
| 413 local block = false; | 413 local block = false; |
| 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 not stanza.attr.from or not stanza.attr.to or jid_bare(stanza.attr.from) == bare_jid and item["presence-out"]) or | 418 (stanza.name == "presence" and not stanza.attr.from or 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-out"] == 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 |
