X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/3c88406edcde2be0a3ed6975c1cd3a3a985276ea..25f673bfde1c316aa0c5af551f6c0aa601b53e51:/modules/m_accept.c diff --git a/modules/m_accept.c b/modules/m_accept.c index 835b7ea0..cd3074b5 100644 --- a/modules/m_accept.c +++ b/modules/m_accept.c @@ -34,7 +34,10 @@ #include "parse.h" #include "modules.h" -static int m_accept(struct MsgBuf *, struct Client *, struct Client *, int, const char **); +static const char accept_desc[] = + "Provides the ACCEPT command for use with Caller ID/user mode +g"; + +static void m_accept(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static void build_nicklist(struct Client *, char *, char *, const char *); static void add_accept(struct Client *, struct Client *); @@ -48,8 +51,6 @@ struct Message accept_msgtab = { mapi_clist_av1 accept_clist[] = { &accept_msgtab, NULL }; -static const char accept_desc[] = - "Provides the ACCEPT command for use with Caller ID/user mode +g"; DECLARE_MODULE_AV2(accept, NULL, NULL, accept_clist, NULL, NULL, NULL, NULL, accept_desc); @@ -57,7 +58,7 @@ DECLARE_MODULE_AV2(accept, NULL, NULL, accept_clist, NULL, NULL, NULL, NULL, acc * m_accept - ACCEPT command handler * parv[1] = servername */ -static int +static void m_accept(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { char *nick; @@ -70,7 +71,7 @@ m_accept(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source if(*parv[1] == '*') { list_accepts(source_p); - return 0; + return; } build_nicklist(source_p, addbuf, delbuf, parv[1]); @@ -123,15 +124,13 @@ m_accept(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source if(accept_num >= ConfigFileEntry.max_accept) { sendto_one(source_p, form_str(ERR_ACCEPTFULL), me.name, source_p->name); - return 0; + return; } /* why is this here? */ /* del_from accept(target_p, source_p); */ add_accept(source_p, target_p); } - - return 0; } /*