Mercurial > prosody-wiki
annotate mod_lastlog.wiki @ 505:049ad0dda0d1
mod_lastlog: correctly describe lastlog_stamp_offline
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 16 Feb 2015 13:37:14 +0100 |
parents | 87df2ef1ee59 |
children |
rev | line source |
---|---|
303 | 1 #summary Log last login time |
421
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
2 #labels Stage-Beta |
303 | 3 |
4 = Introduction = | |
5 | |
6 Simple module that stores the timestamp of when a user logs in. | |
7 | |
8 = Usage = | |
9 | |
10 As with all modules, copy it to your plugins directory and then add it to the modules_enabled list: | |
11 | |
12 {{{ | |
13 modules_enabled = { | |
14 -- ... | |
15 "lastlog", | |
16 -- ... | |
17 } | |
18 }}} | |
19 | |
20 = Configuration = | |
21 | |
421
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
22 There are some options you can add to your config file: |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
23 |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
24 || *Name* || *Values* || *Description* || |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
25 || lastlog_ip_address || true/false || Log the IP address of the user? || |
505
049ad0dda0d1
mod_lastlog: correctly describe lastlog_stamp_offline
Kim Alvefur <zash@zash.se>
parents:
421
diff
changeset
|
26 || lastlog_stamp_offline || true/false || Add timestamp to offline presence? || |
421
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
27 |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
28 = Usage = |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
29 |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
30 You can check a user's last activity by running: |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
31 |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
32 {{{ |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
33 prosodyctl mod_lastlog username@example.com |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
34 }}} |
303 | 35 |
36 = Compatibility = | |
421
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
37 || 0.9 || Works || |