Software / code / prosody-modules
Comparison
mod_lastlog2/README.markdown @ 4012:fd582067c732
mod_lastlog2: Store last timestamp per account event
Incompatible with mod_lastlog and other modules using its data due to
use of map store
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 29 Mar 2020 15:09:25 +0200 |
| parent | 3117:mod_lastlog/README.markdown@dd6313ddd3e0 |
| child | 5900:c5df6d53f17f |
comparison
equal
deleted
inserted
replaced
| 4011:de40686ae9c8 | 4012:fd582067c732 |
|---|---|
| 1 --- | |
| 2 labels: | |
| 3 - 'Stage-Beta' | |
| 4 summary: Record last timestamp of events | |
| 5 --- | |
| 6 | |
| 7 # Introduction | |
| 8 | |
| 9 Similar to [mod_lastlog], this module records the last timestamp of | |
| 10 various events, but keeps the last timestamp per type of event, instead | |
| 11 of the last event. | |
| 12 | |
| 13 # Usage | |
| 14 | |
| 15 As with all modules, copy it to your plugins directory and then add it | |
| 16 to the modules\_enabled list: | |
| 17 | |
| 18 ``` {.lua} | |
| 19 modules_enabled = { | |
| 20 -- other modules | |
| 21 "lastlog2", | |
| 22 } | |
| 23 ``` | |
| 24 | |
| 25 # Configuration | |
| 26 | |
| 27 There are some options you can add to your config file: | |
| 28 | |
| 29 Name Type Default Description | |
| 30 ---------------------- --------- --------- --------------------------------- | |
| 31 lastlog\_ip\_address boolean false Log the IP address of the user? | |
| 32 | |
| 33 # Usage | |
| 34 | |
| 35 You can check a user's last activity by running: | |
| 36 | |
| 37 prosodyctl mod_lastlog username@example.com | |
| 38 | |
| 39 # Compatibility | |
| 40 | |
| 41 Version State | |
| 42 --------- ------- | |
| 43 Any *TBD* |