X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_desynch.c;h=a8533ac2a3a264f28bc02d9cb6264409052dde28;hb=refs%2Fheads%2Fupstream-ssl;hp=de7cad80c0d86f8f7719d95d612a1adf1cb5948f;hpb=8049d81b2a13d802a41016396781b02fad16f443;p=ircu2.10.12-pk.git diff --git a/ircd/m_desynch.c b/ircd/m_desynch.c index de7cad8..a8533ac 100644 --- a/ircd/m_desynch.c +++ b/ircd/m_desynch.c @@ -79,17 +79,12 @@ * note: it is guaranteed that parv[0]..parv[parc-1] are all * non-NULL pointers. */ -#if 0 -/* - * No need to include handlers.h here the signatures must match - * and we don't need to force a rebuild of all the handlers everytime - * we add a new one to the list. --Bleep - */ -#include "handlers.h" -#endif /* 0 */ +#include "config.h" + #include "client.h" #include "hash.h" #include "ircd.h" +#include "ircd_log.h" #include "ircd_reply.h" #include "ircd_string.h" #include "msg.h" @@ -98,7 +93,7 @@ #include "s_bsd.h" #include "send.h" -#include +/* #include -- Now using assert in ircd_log.h */ /* * ms_desynch - server message handler @@ -111,39 +106,10 @@ */ int ms_desynch(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) { - if (IsServer(sptr) && parc >= 2) - sendcmdto_flag_butone(sptr, CMD_DESYNCH, cptr, FLAGS_DEBUG, ":%s", - parv[parc - 1]); - - return 0; -} + if (parc >= 2) + sendwallto_group_butone(sptr, WALL_DESYNCH, cptr, "%s", parv[parc - 1]); + else + need_more_params(sptr,"DESYNCH"); -#if 0 -/* - * m_desynch - * - * Writes to all +g users; for sending wall type debugging/anti-hack info. - * Added 23 Apr 1998 --Run - * - * parv[0] - sender prefix - * parv[parc-1] - message text - */ -int m_desynch(struct Client *cptr, struct Client *sptr, int parc, char *parv[]) -{ - if (IsServer(sptr) && parc >= 2) - { - int i; - struct Client *acptr; - /* Send message to local +g clients as if it were a wallops */ - sprintf_irc(sendbuf, ":%s WALLOPS :%s", parv[0], parv[parc - 1]); - for (i = 0; i <= HighestFd; i++) - if ((acptr = LocalClientArray[i]) && !IsServer(acptr) && !IsMe(acptr) && - SendDebug(acptr)) - sendbufto_one(acptr); /* XXX DEAD */ - /* Send message to remote +g clients */ - sendto_g_serv_butone(cptr, "%s DESYNCH :%s", NumServ(sptr), parv[parc - 1]); /* XXX DEAD */ - } return 0; } -#endif /* 0 */ -