From: Alexander Barton Date: Tue, 24 Jan 2012 01:43:55 +0000 (+0100) Subject: Conn_UpdateIdle(): Code cleanup X-Git-Tag: rel-19-rc1~12 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=d2df7396a89b3e8de44379c305916bfee93ceb9b Conn_UpdateIdle(): Code cleanup --- diff --git a/src/ngircd/conn-func.c b/src/ngircd/conn-func.c index 32001f08..23c20758 100644 --- a/src/ngircd/conn-func.c +++ b/src/ngircd/conn-func.c @@ -30,11 +30,17 @@ #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 -Conn_UpdateIdle( CONN_ID Idx ) +Conn_UpdateIdle(CONN_ID Idx) { - assert( Idx > NONE ); - My_Connections[Idx].lastprivmsg = time( NULL ); + assert(Idx > NONE); + My_Connections[Idx].lastprivmsg = time(NULL); }