]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Conn_UpdateIdle(): Code cleanup
authorAlexander Barton <alex@barton.de>
Tue, 24 Jan 2012 01:43:55 +0000 (02:43 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 24 Jan 2012 01:43:55 +0000 (02:43 +0100)
src/ngircd/conn-func.c

index 32001f08d93c97bb3ee454c7564ae1ef0b43b184..23c2075895c1d3157402ed1d80d9cfc967f46b2f 100644 (file)
 #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);
 }