about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2012-01-24 02:43:55 +0100
committerAlexander Barton <alex@barton.de>2012-01-24 02:43:55 +0100
commitd2df7396a89b3e8de44379c305916bfee93ceb9b (patch)
treec947901eda713e7a3db7f2eb8ce514187876df22 /src
parent3d27073d61ab52277a3237c9a2375e5deda9d690 (diff)
downloadngircd-d2df7396a89b3e8de44379c305916bfee93ceb9b.tar.gz
ngircd-d2df7396a89b3e8de44379c305916bfee93ceb9b.zip
Conn_UpdateIdle(): Code cleanup
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn-func.c12
1 files changed, 9 insertions, 3 deletions
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);
 }