From 75399a93340acc08d2452e343878b73a6f966421 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sat, 29 Jul 2017 23:15:14 +0100 Subject: [PATCH] modules/core/m_join.c: remove global variable modebuf --- modules/core/m_join.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/core/m_join.c b/modules/core/m_join.c index 464ec7d1..cb8532c9 100644 --- a/modules/core/m_join.c +++ b/modules/core/m_join.c @@ -81,7 +81,6 @@ static void remove_our_modes(struct Channel *chptr, struct Client *source_p); static void remove_ban_list(struct Channel *chptr, struct Client *source_p, rb_dlink_list * list, char c, int mems); -static char modebuf[MODEBUFLEN]; static char parabuf[MODEBUFLEN]; /* Check what we will forward to, without sending any notices to the user @@ -391,6 +390,7 @@ m_join(struct Client *client_p, struct Client *source_p, int parc, const char *p static int ms_join(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { + static char modebuf[MODEBUFLEN]; struct Channel *chptr; static struct Mode mode; time_t oldts; @@ -511,6 +511,7 @@ ms_join(struct Client *client_p, struct Client *source_p, int parc, const char * static int ms_sjoin(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { + static char modebuf[MODEBUFLEN]; static char buf_uid[BUFSIZE]; static const char empty_modes[] = "0"; struct Channel *chptr;