Mercurial > prosody-hg
comparison plugins/mod_blocklist.lua @ 13482:4d697961546d
mod_blocklist: Fix fix signal for letting stanzas pass
Returning nothing/nil lets stanzas pass, returning anything else blocks
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 23 Apr 2024 20:01:41 +0200 |
| parents | 1c87c0a7ece6 |
| children | ae65f199f408 |
comparison
equal
deleted
inserted
replaced
| 13481:1c87c0a7ece6 | 13482:4d697961546d |
|---|---|
| 274 if is_blocked(to, from) then | 274 if is_blocked(to, from) then |
| 275 return true; | 275 return true; |
| 276 end | 276 end |
| 277 end | 277 end |
| 278 end | 278 end |
| 279 | |
| 280 return false; | |
| 281 end | 279 end |
| 282 end | 280 end |
| 283 | 281 |
| 284 local function bounce_stanza(event) | 282 local function bounce_stanza(event) |
| 285 local origin, stanza = event.origin, event.stanza; | 283 local origin, stanza = event.origin, event.stanza; |
