mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-05 21:30:29 +00:00
Conn_UpdateIdle(): Code cleanup
This commit is contained in:
parent
3d27073d61
commit
d2df7396a8
@ -30,11 +30,17 @@
|
|||||||
#include "conn-func.h"
|
#include "conn-func.h"
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update "idle timestamp", the time of the last visible user action
|
||||||
|
* (e. g. like sending messages, joining or leaving channels).
|
||||||
|
*
|
||||||
|
* @param Idx Connection index.
|
||||||
|
*/
|
||||||
GLOBAL void
|
GLOBAL void
|
||||||
Conn_UpdateIdle( CONN_ID Idx )
|
Conn_UpdateIdle(CONN_ID Idx)
|
||||||
{
|
{
|
||||||
assert( Idx > NONE );
|
assert(Idx > NONE);
|
||||||
My_Connections[Idx].lastprivmsg = time( NULL );
|
My_Connections[Idx].lastprivmsg = time(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user