*/
#include "stdinc.h"
-#include "tools.h"
#include "client.h"
#include "msg.h"
#include "parse.h"
tmp = LOCAL_COPY(nicks);
- for(name = strtoken(&p, tmp, ","); name; name = strtoken(&p, NULL, ","))
+ for(name = rb_strtok_r(tmp, ",", &p); name; name = rb_strtok_r(NULL, ",", &p))
{
if(EmptyString(name) || strlen(name) > NICKLEN-1)
continue;
sendto_one(client_p, "%s", offbuf);
if(p)
- snprintf(buf, sizeof(buf), "%s,%s", name, p);
+ rb_snprintf(buf, sizeof(buf), "%s,%s", name, p);
else
- snprintf(buf, sizeof(buf), "%s", name);
+ rb_snprintf(buf, sizeof(buf), "%s", name);
sendto_one(client_p, form_str(ERR_MONLISTFULL),
me.name, client_p->name,
tmp = LOCAL_COPY(nicks);
- for(name = strtoken(&p, tmp, ","); name; name = strtoken(&p, NULL, ","))
+ for(name = rb_strtok_r(tmp, ",", &p); name; name = rb_strtok_r(NULL, ",", &p))
{
if(EmptyString(name))
continue;