para = (parc > 1 && *parv[parc - 1] != '\0') ? parv[parc - 1] : "<>";
- Debug((DEBUG_ERROR, "Received ERROR message from %s: %s", sptr->name, para));
+ Debug((DEBUG_ERROR, "Received ERROR message from %s: %s", cli_name(sptr), para));
if (cptr == sptr)
sendto_opmask_butone(0, SNO_OLDSNO, "ERROR :from %C -- %s", cptr, para);
sendto_opmask_butone(0, SNO_OLDSNO, "ERROR :from %C via %C -- %s", sptr,
cptr, para);
- if (sptr->serv)
+ if (cli_serv(sptr))
{
- MyFree(sptr->serv->last_error_msg);
- DupString(sptr->serv->last_error_msg, para);
+ MyFree(cli_serv(sptr)->last_error_msg);
+ DupString(cli_serv(sptr)->last_error_msg, para);
}
return 0;