Mercurial > prosody-hg
comparison plugins/mod_csi_simple.lua @ 9770:76cb409db537 0.11
mod_csi_simple: Consider messages with subject (eg MUC joins) (fixes part of #1250)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 06 Jan 2019 21:09:00 +0100 |
| parents | 150e9574c149 |
| children | bf92f37de137 |
comparison
equal
deleted
inserted
replaced
| 9769:150e9574c149 | 9770:76cb409db537 |
|---|---|
| 71 stanza = forwarded; | 71 stanza = forwarded; |
| 72 end | 72 end |
| 73 if stanza:get_child("body") then | 73 if stanza:get_child("body") then |
| 74 return true; | 74 return true; |
| 75 end | 75 end |
| 76 if stanza:get_child("subject") then | |
| 77 return true; | |
| 78 end | |
| 76 return false; | 79 return false; |
| 77 end | 80 end |
| 78 return true; | 81 return true; |
| 79 end, -1); | 82 end, -1); |
| 80 | 83 |
