]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_ison.c
ShadowIRCd 6.2.0-beta1
[irc/rqf/shadowircd.git] / modules / m_ison.c
index a28f598e81cc22e1b55786cf157731f5e1f0b76b..425f99d56141562b9a0e4b37005579806d5a5981 100644 (file)
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_ison.c 254 2005-09-21 23:35:12Z nenolod $
  */
 
 #include "stdinc.h"
 #include "client.h"
-#include "irc_string.h"
-#include "sprintf_irc.h"
+#include "match.h"
 #include "ircd.h"
 #include "numeric.h"
 #include "send.h"
@@ -87,7 +85,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);