]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conn-func.c
Make the maximum /list reply length a configurable limit.
[ngircd-alex.git] / src / ngircd / conn-func.c
index 23c2075895c1d3157402ed1d80d9cfc967f46b2f..e81a79e961a1c165b4bf4851a8f594f6d4af74ee 100644 (file)
@@ -43,6 +43,17 @@ Conn_UpdateIdle(CONN_ID Idx)
        My_Connections[Idx].lastprivmsg = time(NULL);
 }
 
+/**
+ * Update "ping timestamp", the time of the last outgoing PING request.
+ *
+ * @param Idx Connection index.
+ */
+GLOBAL void
+Conn_UpdatePing(CONN_ID Idx)
+{
+       assert(Idx > NONE);
+       My_Connections[Idx].lastping = time(NULL);
+}
 
 /*
  * Get signon time of a connection.