X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/eeabf33a7c34efbedce519f67b8b87e4c75a422f..81e41406f4027dfef50dcd5ef33403661bea5995:/extensions/m_identify.c diff --git a/extensions/m_identify.c b/extensions/m_identify.c index 7f242b28..aebcd361 100644 --- a/extensions/m_identify.c +++ b/extensions/m_identify.c @@ -31,7 +31,6 @@ #include "stdinc.h" #include "client.h" -#include "common.h" #include "ircd.h" #include "match.h" #include "numeric.h" @@ -49,7 +48,7 @@ static const char identify_desc[] = "Adds the IDENTIFY alias that forwards to NickServ or ChanServ"; -static int m_identify(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); +static void m_identify(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); struct Message identify_msgtab = { "IDENTIFY", 0, 0, 0, 0, @@ -61,11 +60,10 @@ mapi_clist_av1 identify_clist[] = { NULL }; -static const char identify_desc[] = "Adds the IDENTIFY alias that forwards to NickServ or ChanServ"; - DECLARE_MODULE_AV2(identify, NULL, NULL, identify_clist, NULL, NULL, NULL, NULL, identify_desc); -static int m_identify(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) +static void +m_identify(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { const char *nick; struct Client *target_p; @@ -73,7 +71,7 @@ static int m_identify(struct MsgBuf *msgbuf_p, struct Client *client_p, struct C if (parc < 2 || EmptyString(parv[1])) { sendto_one(source_p, form_str(ERR_NOTEXTTOSEND), me.name, source_p->name); - return 0; + return; } nick = parv[1][0] == '#' ? SVS_chanserv_NICK : SVS_nickserv_NICK; @@ -85,5 +83,4 @@ static int m_identify(struct MsgBuf *msgbuf_p, struct Client *client_p, struct C { sendto_one_numeric(source_p, ERR_SERVICESDOWN, form_str(ERR_SERVICESDOWN), nick); } - return 0; }