]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc-write.c
Updated to latest strl{cat|cpy} code of rsync:
[ngircd-alex.git] / src / ngircd / irc-write.c
index b8a5e28d6eaa1095f5291e6c478a09c539638a95..56f9b22278433762bcfe6ffaceb2e747793997b7 100644 (file)
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: irc-write.c,v 1.14 2002/12/30 17:15:42 alex Exp $";
+static char UNUSED id[] = "$Id: irc-write.c,v 1.16 2004/10/20 13:47:32 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
-#include <stdarg.h>
+#ifdef PROTOTYPES
+#      include <stdarg.h>
+#else
+#      include <varargs.h>
+#endif
 #include <stdio.h>
 #include <string.h>
 
@@ -395,6 +399,21 @@ va_dcl
 } /* IRC_WriteStrRelatedPrefix */
 
 
+GLOBAL VOID
+IRC_SetPenalty( CLIENT *Client, INT Seconds )
+{
+       CONN_ID c;
+       
+       assert( Client != NULL );
+       assert( Seconds > 0 );
+       
+       if( Client_Type( Client ) == CLIENT_SERVER ) return;
+       
+       c = Client_Conn( Client );
+       if( c > NONE ) Conn_SetPenalty( c, Seconds );           
+} /* IRC_SetPenalty */
+
+
 LOCAL CHAR *
 Get_Prefix( CLIENT *Target, CLIENT *Client )
 {