Software /
code /
prosody-modules
Comparison
mod_firewall/README.markdown @ 2390:28fbe960adcf
mod_firewall: README: Document conditions for groups and admins
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 19 Nov 2016 16:08:58 +0000 |
parent | 2389:a753b21968c5 |
child | 2410:898e70e85185 |
comparison
equal
deleted
inserted
replaced
2389:a753b21968c5 | 2390:28fbe960adcf |
---|---|
231 #### IN_ROSTER_GROUP | 231 #### IN_ROSTER_GROUP |
232 | 232 |
233 Tests whether the sender is in the recipient's roster, and in the named group. | 233 Tests whether the sender is in the recipient's roster, and in the named group. |
234 | 234 |
235 IN_ROSTER_GROUP: Friends | 235 IN_ROSTER_GROUP: Friends |
236 | |
237 ### Groups | |
238 | |
239 Using Prosody's mod\_groups it is possible to define groups of users on the server. You can | |
240 match based on these groups in firewall rules. | |
241 | |
242 Condition Matches | |
243 ------------- ---------------------------- | |
244 `FROM_GROUP` When the stanza is being sent from a member of the named group | |
245 `TO_GROUP` When the stanza is being sent to a member of the named group | |
246 | |
247 ### Admins | |
248 | |
249 Prosody allows certain JIDs to be declared as administrators of a host, component or the whole server. | |
250 | |
251 Condition Matches | |
252 -------------- ---------------------------------- | |
253 FROM_ADMIN_OF When the sender of the stanza is an admin of the named host on the current server | |
254 TO_ADMIN_OF When the recipient of the stanza is an admin of the named host on the current server | |
236 | 255 |
237 ### Time and date | 256 ### Time and date |
238 | 257 |
239 #### TIME | 258 #### TIME |
240 | 259 |