#include "portab.h"
-static char UNUSED id[] = "$Id: irc-oper.c,v 1.22 2005/06/12 18:02:09 fw Exp $";
+static char UNUSED id[] = "$Id: irc-oper.c,v 1.25 2006/04/23 10:37:27 fw Exp $";
#include "imp.h"
#include <assert.h>
#include "irc-oper.h"
-LOCAL bool
+static bool
Bad_OperPass(CLIENT *Client, char *errtoken, char *errmsg)
{
Log( LOG_WARNING, "Got invalid OPER from \"%s\": \"%s\" -- %s", Client_Mask( Client ),
GLOBAL bool
IRC_OPER( CLIENT *Client, REQUEST *Req )
{
- int i;
+ unsigned int i;
assert( Client != NULL );
assert( Req != NULL );
if( ! Conf_DisableServer( Req->argv[0] )) return IRC_WriteStrClient( Client, ERR_NOSUCHSERVER_MSG, Client_ID( Client ), Req->argv[0] );
/* Are we still connected or were we killed, too? */
- if( Client_GetFromConn( my_conn )) return CONNECTED;
+ if( Conn_GetClient( my_conn )) return CONNECTED;
else return DISCONNECTED;
} /* IRC_CONNECT */