#include "jsm.h"
Functions | |
| void | mod_last (jsmi si) |
By sending a jabber:iq:last query of type get the server will either reply with its own startup time (query sent to the session manager's address) or with the time a user last went offline or the time of the user's registration if it never was online (query sent to a user's address).
jabber:iq:last queries are only processed if the querying entity has a subscription to the queried user's presence.
| void mod_last | ( | jsmi | si | ) |
init the mod_last module
register different callbacks:
The server's startup time is stored as the argument to the mod_last_server callback.
| si | the session manager instance |
References e_DELETE, e_DESERIALIZE, e_OFFLINE, e_REGISTER, e_SERVER, e_SESSION, js_config(), js_mapi_register(), log_debug2, LOGT_INIT, jsmi_struct::p, pmalloco(), register_config(), xmlnode_free(), and ZONE.
1.5.5