X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Firc-write.c;h=aebea0c9b2c531c37763a3f5a2ada09721f6d2a0;hb=d155ed17c8ed3153250ca79ce7f634db1f6713c4;hp=b8a5e28d6eaa1095f5291e6c478a09c539638a95;hpb=0b114e814b9b12bd06052329d8b7815e7ea70a08;p=ngircd.git diff --git a/src/ngircd/irc-write.c b/src/ngircd/irc-write.c index b8a5e28d..aebea0c9 100644 --- a/src/ngircd/irc-write.c +++ b/src/ngircd/irc-write.c @@ -14,7 +14,7 @@ #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.14.2.1 2003/11/07 20:51:11 alex Exp $"; #include "imp.h" #include @@ -395,6 +395,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 ) {