projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added basic ssl support to ircu
[ircu2.10.12-pk.git]
/
ircd
/
m_close.c
diff --git
a/ircd/m_close.c
b/ircd/m_close.c
index 3fd7dd8da51df8e302348ef1a97ca81c13183123..d8e519459910d84f487dad702b4dd2b53e9fca94 100644
(file)
--- 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.
*/
* 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 "client.h"
#include "ircd.h"
+#include "ircd_log.h"
#include "ircd_reply.h"
#include "numeric.h"
#include "s_bsd.h"
#include "send.h"
#include "ircd_reply.h"
#include "numeric.h"
#include "s_bsd.h"
#include "send.h"
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
/*
* mo_close - oper message handler
/*
* 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));
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));
}
}
-
-