]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conn-func.c
bind ListenAddress for outgoing connections
[ngircd-alex.git] / src / ngircd / conn-func.c
index 6170a8cd58ae1d4c44d5aaad877dabdaf41e9708..92da1428c0a32ebe05353269bd0d7621758359f0 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: conn-func.c,v 1.10 2006/05/10 21:24:01 alex Exp $";
+static char UNUSED id[] = "$Id: conn-func.c,v 1.11 2007/10/04 15:03:56 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -39,6 +39,16 @@ Conn_UpdateIdle( CONN_ID Idx )
 }
 
 
+/*
+ * Get signon time of a connection.
+ */
+GLOBAL time_t
+Conn_GetSignon(CONN_ID Idx)
+{
+       assert(Idx > NONE);
+       return My_Connections[Idx].signon;
+}
+
 GLOBAL time_t
 Conn_GetIdle( CONN_ID Idx )
 {