*
* $Id$
*/
+#include "config.h"
#if 0
/*
comment = parv[parc-1];
if (BadPtr(parv[parc - 1]))
- comment=sptr->name;
+ comment = cli_name(sptr);
acptr = FindNServer(server);
/* If atoi(parv[2]) == 0 we must indeed squit !
* It will be our neighbour.
*/
- if ( timestamp != 0 && timestamp != acptr->serv->timestamp) {
+ if ( timestamp != 0 && timestamp != cli_serv(acptr)->timestamp) {
Debug((DEBUG_NOTICE, "Ignoring SQUIT with the wrong timestamp"));
return 0;
}
return need_more_params(sptr, "SQUIT");
if (parc < 3 || BadPtr(parv[2]))
- comment = sptr->name;
+ comment = cli_name(sptr);
else
comment = parv[2];
* when the command is issued by an oper.
*/
for (acptr = GlobalClientList; (acptr = next_client(acptr, server));
- acptr = acptr->next) {
+ acptr = cli_next(acptr)) {
if (IsServer(acptr) || IsMe(acptr))
break;
}
* servers like davis.* and davis-r.* when typing
* /SQUIT davis*
*/
- for (acptr2 = acptr->serv->up; acptr2 != &me;
- acptr2 = acptr2->serv->up)
- if (!match(server, acptr2->name))
+ for (acptr2 = cli_serv(acptr)->up; acptr2 != &me;
+ acptr2 = cli_serv(acptr2)->up)
+ if (!match(server, cli_name(acptr2)))
acptr = acptr2;
/* Disallow local opers to squit remote servers */