]> jfr.im git - solanum.git/blobdiff - modules/core/m_message.c
strip_tabs() is related to s_conf.c ONLY - moved it there
[solanum.git] / modules / core / m_message.c
index 8f09c426ab6bad3d233a43b84b2995ace0643c36..f559719ccf8a02f5ba9d89e64705647f42e62d55 100644 (file)
@@ -250,7 +250,7 @@ build_target_list(int p_or_n, const char *command, struct Client *client_p,
 
        ntargets = 0;
 
-       for(nick = strtoken(&p, target_list, ","); nick; nick = strtoken(&p, NULL, ","))
+       for(nick = rb_strtok_r(target_list, ",", &p); nick; nick = rb_strtok_r(NULL, ",", &p))
        {
                char *with_prefix;
                /*
@@ -451,7 +451,7 @@ msg_channel(int p_or_n, const char *command,
 
        if(chptr->mode.mode & MODE_NOCOLOR)
        {
-               strlcpy(text2, text, BUFSIZE);
+               rb_strlcpy(text2, text, BUFSIZE);
                strip_colour(text2);
                text = text2;
                if (EmptyString(text))
@@ -612,6 +612,7 @@ add_target(struct Client *source_p, struct Client *target_p)
                /* cant clear any, full target list */
                else if(USED_TARGETS(source_p) == 10)
                {
+                       ServerStats.is_tgch++;
                        add_tgchange(source_p->sockhost);
                        return 0;
                }