commit d2df7396a89b3e8de44379c305916bfee93ceb9b from: Alexander Barton date: Tue Jan 24 01:43:55 2012 UTC Conn_UpdateIdle(): Code cleanup commit - 3d27073d61ab52277a3237c9a2375e5deda9d690 commit + d2df7396a89b3e8de44379c305916bfee93ceb9b blob - 32001f08d93c97bb3ee454c7564ae1ef0b43b184 blob + 23c2075895c1d3157402ed1d80d9cfc967f46b2f --- src/ngircd/conn-func.c +++ src/ngircd/conn-func.c @@ -30,11 +30,17 @@ #include "conn-func.h" -GLOBAL void -Conn_UpdateIdle( CONN_ID Idx ) +/** + * 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 +Conn_UpdateIdle(CONN_ID Idx) { - assert( Idx > NONE ); - My_Connections[Idx].lastprivmsg = time( NULL ); + assert(Idx > NONE); + My_Connections[Idx].lastprivmsg = time(NULL); }