]> jfr.im git - irc/charybdis-ircd/charybdis.git/commitdiff
modules/core/m_join.c: remove global variable pargs
authorSimon Arlott <sa.me.uk>
Sat, 29 Jul 2017 22:10:35 +0000 (23:10 +0100)
committerAaron Jones <redacted>
Fri, 4 Aug 2017 12:32:58 +0000 (12:32 +0000)
modules/core/m_join.c

index b9682788aabdad4203f77bb6249f23b4f6ebd60a..ea7194b87c096360a602e5e09d04355a208932bd 100644 (file)
@@ -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