]> jfr.im git - solanum.git/blobdiff - modules/m_close.c
msg: remove last vestiges of the fakelag system. charybdis has never supported fakelag.
[solanum.git] / modules / m_close.c
index e352bc5ace6e7cb40e85911db811bdc9d961808d..ba0facdbff0f072432924c97bc3cfd5612b0a581 100644 (file)
  */
 
 #include "stdinc.h"
-#include "tools.h"
 #include "client.h"
 #include "ircd.h"
 #include "numeric.h"
-#include "commio.h"
 #include "send.h"
 #include "msg.h"
 #include "parse.h"
 #include "modules.h"
 
-static int mo_close(struct Client *, struct Client *, int, const char **);
+static int mo_close(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
 
 struct Message close_msgtab = {
-       "CLOSE", 0, 0, 0, MFLG_SLOW,
+       "CLOSE", 0, 0, 0, 0,
        {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_close, 0}}
 };
 
@@ -50,14 +48,14 @@ DECLARE_MODULE_AV1(close, NULL, NULL, close_clist, NULL, NULL, "$Revision: 254 $
  *  - added by Darren Reed Jul 13 1992.
  */
 static int
-mo_close(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+mo_close(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        struct Client *target_p;
-       dlink_node *ptr;
-       dlink_node *ptr_next;
+       rb_dlink_node *ptr;
+       rb_dlink_node *ptr_next;
        int closed = 0;
 
-       DLINK_FOREACH_SAFE(ptr, ptr_next, unknown_list.head)
+       RB_DLINK_FOREACH_SAFE(ptr, ptr_next, unknown_list.head)
        {
                target_p = ptr->data;