X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_error.c;h=f7ad566a465e16f166f99dd3b463fc258430c674;hb=80881d85337d93d70b67a505ae5178199b1b3155;hp=7af17f44f18d80ce8538cf89143d016b078e23da;hpb=21adc78c56f940806a7902356f21fa52e54a76ff;p=ircu2.10.12-pk.git diff --git a/ircd/m_error.c b/ircd/m_error.c index 7af17f4..f7ad566 100644 --- a/ircd/m_error.c +++ b/ircd/m_error.c @@ -115,55 +115,6 @@ int ms_error(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) para = (parc > 1 && *parv[parc - 1] != '\0') ? parv[parc - 1] : "<>"; Debug((DEBUG_ERROR, "Received ERROR message from %s: %s", sptr->name, para)); - /* - * Ignore error messages generated by normal user clients - * (because ill-behaving user clients would flood opers - * screen otherwise). Pass ERROR's from other sources to - * the local operator... - */ - if (IsUser(cptr)) - return 0; - if (IsUnknown(cptr)) - return exit_client_msg(cptr, cptr, &me, "Register first"); - - if (cptr == sptr) - sendto_opmask_butone(0, SNO_OLDSNO, "ERROR :from %C -- %s", cptr, para); - else - sendto_opmask_butone(0, SNO_OLDSNO, "ERROR :from %C via %C -- %s", sptr, - cptr, para); - - if (sptr->serv) - { - MyFree(sptr->serv->last_error_msg); - DupString(sptr->serv->last_error_msg, para); - } - - return 0; -} - -/* - * mr_error - registration message handler - * - * parv[0] = sender prefix - * parv[parc-1] = text - */ -int mr_error(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) -{ - const char *para; - - para = (parc > 1 && *parv[parc - 1] != '\0') ? parv[parc - 1] : "<>"; - - Debug((DEBUG_ERROR, "Received ERROR message from %s: %s", sptr->name, para)); - /* - * Ignore error messages generated by normal user clients - * (because ill-behaving user clients would flood opers - * screen otherwise). Pass ERROR's from other sources to - * the local operator... - */ - if (IsUser(cptr)) - return 0; - if (IsUnknown(cptr)) - return exit_client_msg(cptr, cptr, &me, "Register first"); if (cptr == sptr) sendto_opmask_butone(0, SNO_OLDSNO, "ERROR :from %C -- %s", cptr, para);