/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
+ * Copyright (c)2001-2005 by Alexander Barton (alex@barton.de)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "portab.h"
-static char UNUSED id[] = "$Id: irc-write.c,v 1.17 2005/03/19 18:43:49 fw Exp $";
+static char UNUSED id[] = "$Id: irc-write.c,v 1.21 2006/08/12 11:56:24 fw Exp $";
#include "imp.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
+#include "defines.h"
#include "conn-func.h"
#include "client.h"
#include "channel.h"
-#include "defines.h"
#include "exp.h"
#include "irc-write.h"
#define SEND_TO_SERVER 2
-LOCAL char *Get_Prefix PARAMS(( CLIENT *Target, CLIENT *Client ));
+static char *Get_Prefix PARAMS(( CLIENT *Target, CLIENT *Client ));
#ifdef PROTOTYPES
}
cl2chan = Channel_NextMember( chan, cl2chan );
}
-
+
/* naechsten Channel */
chan_cl2chan = Channel_NextChannelOf( Client, chan_cl2chan );
}
GLOBAL void
-IRC_SetPenalty( CLIENT *Client, int Seconds )
+IRC_SetPenalty( CLIENT *Client, time_t 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 );
+ if (c > NONE)
+ Conn_SetPenalty(c, Seconds);
} /* IRC_SetPenalty */
-LOCAL char *
+static char *
Get_Prefix( CLIENT *Target, CLIENT *Client )
{
assert( Target != NULL );