Mercurial > prosody-modules
comparison mod_filter_chatstates/mod_filter_chatstates.lua @ 1868:d6e673f98572
mod_filter_chatstates: Revert filter-to-nothing hack
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 21 Sep 2015 23:47:37 +0200 |
parents | 58d96960ba8b |
children |
comparison
equal
deleted
inserted
replaced
1867:34468d3bfcac | 1868:d6e673f98572 |
---|---|
12 local function filter_chatstates(stanza) | 12 local function filter_chatstates(stanza) |
13 if stanza.name == "message" then | 13 if stanza.name == "message" then |
14 stanza = st.clone(stanza); | 14 stanza = st.clone(stanza); |
15 stanza:maptags(chatstate_tag_filter); | 15 stanza:maptags(chatstate_tag_filter); |
16 if #stanza.tags == 0 then | 16 if #stanza.tags == 0 then |
17 return ""; | 17 return nil; |
18 end | 18 end |
19 end | 19 end |
20 return stanza; | 20 return stanza; |
21 end | 21 end |
22 | 22 |