modules/core/m_join.c: remove global variable pargs

This commit is contained in:
Simon Arlott 2017-07-29 23:10:35 +01:00 committed by Aaron Jones
parent 6420b39ad0
commit 1c2012f03b
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012

View file

@ -84,7 +84,6 @@ static void remove_ban_list(struct Channel *chptr, struct Client *source_p,
static char modebuf[MODEBUFLEN]; static char modebuf[MODEBUFLEN];
static char parabuf[MODEBUFLEN]; static char parabuf[MODEBUFLEN];
static const char *para[MAXMODEPARAMS]; static const char *para[MAXMODEPARAMS];
static int pargs;
/* Check what we will forward to, without sending any notices to the user /* Check what we will forward to, without sending any notices to the user
* -- jilles * -- jilles
@ -548,7 +547,7 @@ ms_sjoin(struct Client *client_p, struct Client *source_p, int parc, const char
return 0; return 0;
modebuf[0] = parabuf[0] = mode.key[0] = mode.forward[0] = '\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 */ /* Hide connecting server on netburst -- jilles */
if (ConfigServerHide.flatten_links && !HasSentEob(source_p)) 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; mbuf = modebuf;
para[0] = para[1] = para[2] = para[3] = empty; para[0] = para[1] = para[2] = para[3] = empty;
pargs = 0;
len_uid = 0; len_uid = 0;
int pargs = 0;
/* if theres a space, theres going to be more than one nick, change the /* 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 * first space to \0, so s is just the first nick, and point p to the
* second nick * second nick