]> jfr.im git - solanum.git/blobdiff - modules/core/m_part.c
strip_tabs() is related to s_conf.c ONLY - moved it there
[solanum.git] / modules / core / m_part.c
index d7536d767bcf5f6b9391582c8c8ba49b01ac1825..9e72ebc2d14f309ce3849dbcb8625b8f3f830f29 100644 (file)
@@ -71,9 +71,9 @@ m_part(struct Client *client_p, struct Client *source_p, int parc, const char *p
        reason[0] = '\0';
 
        if(parc > 2)
-               strlcpy(reason, parv[2], sizeof(reason));
+               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;
 }