Author: Vampire- <unknown>
authorPerry Lorier <isomer@undernet.org>
Mon, 24 Sep 2001 00:04:16 +0000 (00:04 +0000)
committerPerry Lorier <isomer@undernet.org>
Mon, 24 Sep 2001 00:04:16 +0000 (00:04 +0000)
Log message:

Second attempt at fixing unique_name_vector

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@564 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
TODO
ircd/ircd_string.c

index 6f49b51b737704bda0232191839001a090b9d710..2d6764c062bafd64c8f0dc260557da7e43bb7810 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2001-09-21  Vampire-  <unknown>
+       * ircd/ircd_string.c: unique_name_vector round II.
+
 2001-09-21  mbuna  <mbuna@undernet.org>
        * configure.in: Add support for darwin
 
diff --git a/TODO b/TODO
index ba5f4a35ccd9d1767e3a48916acd52d6c7e6759e..09bdc45d9e265ca253654f8ef3f7ace51d3af672 100644 (file)
--- a/TODO
+++ b/TODO
@@ -8,6 +8,9 @@ Debugging is at least twice as difficult as programming.  So if you
 write a program that uses all of your ability, you'll never be able
 to debug it all.
 
+Current Bugs:
+* privmsg doesn't work because of bugs in unique_vector
+
 High Priority:
 
 * something is leaking "a meg a minute" with heap debugging on
index 2914f8953e100ad37996022b96760c4ce939c5f8..aaf782631e7852f9364d16fab81248dba24d3f82 100644 (file)
@@ -301,11 +301,10 @@ int unique_name_vector(char* list, char token, char** vector, int size)
     start = end;
   }
   if (*start) {
-    for (i = 0; i < count; ++i) {
+    for (i = 0; i < count; ++i)
       if (0 == ircd_strcmp(vector[i], start))
         return count;
-      vector[count++] = start;
-    }
+    vector[count++] = start;
   }
   return count;
 }