]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_who.c
Only require DNSBL replies to be in 127.0.0.0/8 instead of /24.
[irc/rqf/shadowircd.git] / modules / m_who.c
index 2175fcc5c003adc4d84946c30b91be5b72547635..f05beca5b7c2e96ea4735eee496422db7e2006ad 100644 (file)
@@ -102,6 +102,7 @@ m_who(struct Client *client_p, struct Client *source_p, int parc, const char *pa
        int operspy = 0;
        struct who_format fmt;
        const char *s;
+       char maskcopy[512];
 
        fmt.fields = 0;
        fmt.querytype = NULL;
@@ -137,7 +138,8 @@ m_who(struct Client *client_p, struct Client *source_p, int parc, const char *pa
                        fmt.querytype = "0";
        }
 
-       mask = LOCAL_COPY(parv[1]);
+       rb_strlcpy(maskcopy, parv[1], sizeof maskcopy);
+       mask = maskcopy;
 
        collapse(mask);