]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_ison.c
Allow /ojoin !#channel/%#channel, if admin/halfop are enabled.
[irc/rqf/shadowircd.git] / modules / m_ison.c
index 67a0939da9fba1fbd396cac77662ba0337defa13..d918b7bf22693b2ceaa2a5a8307d4dfc49f360ff 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "stdinc.h"
 #include "client.h"
-#include "irc_string.h"
+#include "match.h"
 #include "ircd.h"
 #include "numeric.h"
 #include "send.h"
@@ -86,7 +86,7 @@ m_ison(struct Client *client_p, struct Client *source_p, int parc, const char *p
        for (i = 1; i < parc; i++)
        {
                char *cs = LOCAL_COPY(parv[i]);
-               for (nick = strtoken(&p, cs, " "); nick; nick = strtoken(&p, NULL, " "))
+               for (nick = rb_strtok_r(cs, " ", &p); nick; nick = rb_strtok_r(NULL, " ", &p))
                {
                        target_p = find_named_client(nick);