From 1c2012f03b5580e385840b68db0a8182b291a319 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sat, 29 Jul 2017 23:10:35 +0100 Subject: [PATCH] modules/core/m_join.c: remove global variable pargs --- modules/core/m_join.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/m_join.c b/modules/core/m_join.c index b9682788..ea7194b8 100644 --- a/modules/core/m_join.c +++ b/modules/core/m_join.c @@ -84,7 +84,6 @@ static void remove_ban_list(struct Channel *chptr, struct Client *source_p, static char modebuf[MODEBUFLEN]; static char parabuf[MODEBUFLEN]; static const char *para[MAXMODEPARAMS]; -static int pargs; /* Check what we will forward to, without sending any notices to the user * -- jilles @@ -548,7 +547,7 @@ ms_sjoin(struct Client *client_p, struct Client *source_p, int parc, const char return 0; modebuf[0] = parabuf[0] = mode.key[0] = mode.forward[0] = '\0'; - pargs = mode.mode = mode.limit = mode.join_num = mode.join_time = 0; + mode.mode = mode.limit = mode.join_num = mode.join_time = 0; /* Hide connecting server on netburst -- jilles */ if (ConfigServerHide.flatten_links && !HasSentEob(source_p)) @@ -774,9 +773,10 @@ ms_sjoin(struct Client *client_p, struct Client *source_p, int parc, const char mbuf = modebuf; para[0] = para[1] = para[2] = para[3] = empty; - pargs = 0; len_uid = 0; + int pargs = 0; + /* if theres a space, theres going to be more than one nick, change the * first space to \0, so s is just the first nick, and point p to the * second nick