Fix convert-conf for H: lines without C: lines.
authorMichael Poole <mdpoole@troilus.org>
Sat, 21 Oct 2006 15:29:10 +0000 (15:29 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sat, 21 Oct 2006 15:29:10 +0000 (15:29 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1724 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/convert-conf.c

index 36223cff81a9b20cd1831d60636b832afd75bed9..9504969ac15aa56e99ff1e34aef4c7d8d872d55a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-21  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/convert-conf.c (finish_connects): Fix error display for
+       missing C: lines when an H: line is present.
+
 2006-08-02  Michael Poole <mdpoole@troilus.org>
 
        * ircd/ircd_parser.y (connectblock): Check for too-long password.
index 9aa92575e9136e7ca4cff8b44e9ba41210d2149c..2e103eacf05c8b0d17c0ca8428ec3d7d89a81d80 100644 (file)
@@ -213,12 +213,11 @@ static void finish_connects(void)
     {
         for (sl = conn->origins; sl; sl = sl->next)
             fprintf(stdout, "# %s\n", sl->value);
-       if (conn->name == NULL
-            || conn->host == NULL
+       if (conn->host == NULL
             || conn->password == NULL
             || conn->class == NULL)
         {
-           fprintf(stderr, "H:line missing C:line for %s\n",sl->value);
+           fprintf(stderr, "H:line missing C:line for %s\n", conn->name);
            continue;
        }