X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_close.c;h=d8e519459910d84f487dad702b4dd2b53e9fca94;hb=refs%2Fheads%2Fupstream;hp=3fd7dd8da51df8e302348ef1a97ca81c13183123;hpb=ae91ef6320f611af74e70a0db2620c338fbaa7d5;p=ircu2.10.12-pk.git diff --git a/ircd/m_close.c b/ircd/m_close.c index 3fd7dd8..d8e5194 100644 --- a/ircd/m_close.c +++ b/ircd/m_close.c @@ -79,22 +79,17 @@ * 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 "ircd.h" +#include "ircd_log.h" #include "ircd_reply.h" #include "numeric.h" #include "s_bsd.h" #include "send.h" -#include +/* #include -- Now using assert in ircd_log.h */ /* * mo_close - oper message handler @@ -106,9 +101,6 @@ int mo_close(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) assert(cptr == sptr); assert(IsAnOper(sptr)); - sendto_one(sptr, rpl_str(RPL_CLOSEEND), me.name, parv[0], - net_close_unregistered_connections(sptr)); - return 0; + return send_reply(sptr, RPL_CLOSEEND, + net_close_unregistered_connections(sptr)); } - -