X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/81af5bcb394280ff1af82486961d852b102b923b..ea41b24fd4807e3565bf5f8f293e2efc4c20b62d:/modules/m_close.c diff --git a/modules/m_close.c b/modules/m_close.c index 19d4e012..4a70cd46 100644 --- a/modules/m_close.c +++ b/modules/m_close.c @@ -20,8 +20,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA - * - * $Id: m_close.c 254 2005-09-21 23:35:12Z nenolod $ */ #include "stdinc.h" @@ -33,22 +31,25 @@ #include "parse.h" #include "modules.h" -static int mo_close(struct Client *, struct Client *, int, const char **); +static const char close_desc[] = "Provides the CLOSE command to clear all unfinished connections"; + +static void 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}} }; mapi_clist_av1 close_clist[] = { &close_msgtab, NULL }; -DECLARE_MODULE_AV1(close, NULL, NULL, close_clist, NULL, NULL, "$Revision: 254 $"); + +DECLARE_MODULE_AV2(close, NULL, NULL, close_clist, NULL, NULL, NULL, NULL, close_desc); /* * mo_close - CLOSE message handler * - added by Darren Reed Jul 13 1992. */ -static int -mo_close(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) +static void +mo_close(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { struct Client *target_p; rb_dlink_node *ptr; @@ -67,5 +68,4 @@ mo_close(struct Client *client_p, struct Client *source_p, int parc, const char } sendto_one(source_p, form_str(RPL_CLOSEEND), me.name, source_p->name, closed); - return 0; }