]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_part.c
strtoken -> rb_strtok_r (with arguments order changes)
[irc/rqf/shadowircd.git] / modules / core / m_part.c
index a098b6e4a51b066991794dcf47c44207635b3bed..9e72ebc2d14f309ce3849dbcb8625b8f3f830f29 100644 (file)
@@ -73,7 +73,7 @@ m_part(struct Client *client_p, struct Client *source_p, int parc, const char *p
        if(parc > 2)
                rb_strlcpy(reason, parv[2], sizeof(reason));
 
-       name = strtoken(&p, s, ",");
+       name = rb_strtok_r(s, ",", &p);
 
        /* Finish the flood grace period... */
        if(MyClient(source_p) && !IsFloodDone(source_p))
@@ -84,7 +84,7 @@ m_part(struct Client *client_p, struct Client *source_p, int parc, const char *p
        while(name)
        {
                part_one_client(client_p, source_p, name, reason);
-               name = strtoken(&p, NULL, ",");
+               name = rb_strtok_r(NULL, ",", &p);
        }
        return 0;
 }