X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_wallops.c;h=dfa10e48ef071d71b946684d760b9d81d0513dca;hb=a36ad5e29241b0c89379947b13887cb6930ef3e0;hp=442a97d920bc3a4ff56a680a5e7696492e07c366;hpb=1b4e637606464f9af948a6e87879565f9fc1b726;p=ircu2.10.12-pk.git diff --git a/ircd/m_wallops.c b/ircd/m_wallops.c index 442a97d..dfa10e4 100644 --- a/ircd/m_wallops.c +++ b/ircd/m_wallops.c @@ -81,22 +81,15 @@ */ #include "config.h" -#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 "client.h" +#include "ircd_log.h" #include "ircd_reply.h" #include "ircd_string.h" #include "msg.h" #include "numeric.h" #include "send.h" -#include +/* #include -- Now using assert in ircd_log.h */ /* @@ -111,8 +104,7 @@ int ms_wallops(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) if (EmptyString(message)) return need_more_params(sptr, "WALLOPS"); - sendcmdto_flag_butone(sptr, CMD_WALLOPS, cptr, FLAGS_WALLOP | FLAGS_OPER, - ":%s", message); + sendwallto_group_butone(sptr, WALL_WALLOPS, cptr, "%s", message); return 0; } @@ -128,7 +120,6 @@ int mo_wallops(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) if (EmptyString(message)) return need_more_params(sptr, "WALLOPS"); - sendcmdto_flag_butone(sptr, CMD_WALLOPS, 0, FLAGS_WALLOP | FLAGS_OPER, - ":%s", message); + sendwallto_group_butone(sptr, WALL_WALLOPS, 0, "%s", message); return 0; }