X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/7018b86a127ef4549a951369db0a797cb74ea15b..43946961df9e7703c8877e4bbd9181507422429d:/modules/m_monitor.c?ds=sidebyside diff --git a/modules/m_monitor.c b/modules/m_monitor.c index eb0dafa9..1193c69e 100644 --- a/modules/m_monitor.c +++ b/modules/m_monitor.c @@ -31,7 +31,6 @@ */ #include "stdinc.h" -#include "tools.h" #include "client.h" #include "msg.h" #include "parse.h" @@ -74,7 +73,7 @@ add_monitor(struct Client *client_p, const char *nicks) 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; @@ -171,7 +170,7 @@ del_monitor(struct Client *client_p, const char *nicks) 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;