]> jfr.im git - irc/charybdis-ircd/charybdis.git/commitdiff
m_join: remove global variable modebuf
authorSimon Arlott <sa.me.uk>
Sat, 29 Jul 2017 22:15:14 +0000 (23:15 +0100)
committerSimon Arlott <sa.me.uk>
Sat, 29 Jul 2017 22:48:54 +0000 (23:48 +0100)
modules/core/m_join.c

index 40e97806476da0ff79fb8990cab51c4a52dfba10..c05886eb12171a75fe6cc2400b1b5ef0191f7221 100644 (file)
@@ -80,7 +80,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
@@ -396,6 +395,7 @@ m_join(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
 static void
 ms_join(struct MsgBuf *msgbuf_p, 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;
@@ -506,6 +506,7 @@ ms_join(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
 static void
 ms_sjoin(struct MsgBuf *msgbuf_p, 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;