Mercurial > prosody-modules
annotate mod_compliance_latest/mod_compliance_latest.lua @ 6092:bd3ff802d883
mod_anti_spam: Fix another traceback for origin sessions without an IP
This is likely to be the case for stanzas originating from local hosts, for
example (so not true s2s). It should be safe to bypass the IP check for those.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 28 Dec 2024 21:02:08 +0000 |
| parents | c0cb43817b7c |
| children | 5c24fd7211c3 |
| rev | line source |
|---|---|
|
6084
4c0e3fe57e92
mod_compliance_latest: Gracefull error logging on missing dependency.
Menel <menel@snikket.de>
parents:
6083
diff
changeset
|
1 local success, err = pcall(function() module:depends("compliance_2023") end) |
|
4c0e3fe57e92
mod_compliance_latest: Gracefull error logging on missing dependency.
Menel <menel@snikket.de>
parents:
6083
diff
changeset
|
2 |
|
4c0e3fe57e92
mod_compliance_latest: Gracefull error logging on missing dependency.
Menel <menel@snikket.de>
parents:
6083
diff
changeset
|
3 if not success then |
|
6085
c0cb43817b7c
mod_compliance_latest: using module:log_status
Menel <menel@snikket.de>
parents:
6084
diff
changeset
|
4 module:log_status( "error", "Error, can't load module: mod_compliance_2023. Is this module downloaded into a folder readable by prosody?" ) |
|
c0cb43817b7c
mod_compliance_latest: using module:log_status
Menel <menel@snikket.de>
parents:
6084
diff
changeset
|
5 return false |
|
6084
4c0e3fe57e92
mod_compliance_latest: Gracefull error logging on missing dependency.
Menel <menel@snikket.de>
parents:
6083
diff
changeset
|
6 end |
