]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conn-func.c
Xcode builds ("make xcode"): disable pam_fail_delay()
[ngircd-alex.git] / src / ngircd / conn-func.c
index 196325eea1aa82ee6083e04d7a94a5866c22e3ad..15bc7cc2663c1f0b94ff21e58da7043274ce17e2 100644 (file)
@@ -273,6 +273,16 @@ Conn_RecvBytes( CONN_ID Idx )
        return My_Connections[Idx].bytes_in;
 } /* Conn_RecvBytes */
 
+/**
+ * Return the remote IP address of this connection as string.
+ */
+GLOBAL const char *
+Conn_IPA(CONN_ID Idx)
+{
+       assert (Idx > NONE);
+       return ng_ipaddr_tostr(&My_Connections[Idx].addr);
+}
+
 
 GLOBAL void
 Conn_ResetWCounter( void )