Fix HIS_SERVER* handling when they are defaulted.
authorMichael Poole <mdpoole@troilus.org>
Fri, 15 Jul 2005 21:28:34 +0000 (21:28 +0000)
committerMichael Poole <mdpoole@troilus.org>
Fri, 15 Jul 2005 21:28:34 +0000 (21:28 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1450 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/ircd_features.c

index f1c26f35008c36a87eb0e9fe302edc2071471be2..014f92258ef291a899bcd3baf328e2c6ae8f1e2e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-07-15  Michael Poole <mdpoole@troilus.org>
 
+       * ircd/ircd_features.c (feature_init): Always call
+       feature_notify_server*() so that 'his' is initialized.
+
        * ircd/m_whois.c (do_whois): Unswap sense of comparison to choose
        between user->server and &his.
 
index 8f5b1cea10dd9373493a18b2c1e72fa071560fe7..ff4a74a45f0f440425abcf7a655a3dc1f400e92e 100644 (file)
@@ -766,9 +766,6 @@ feature_init(void)
 {
   int i;
 
-  cli_magic(&his) = CLIENT_MAGIC;
-  cli_status(&his) = STAT_SERVER;
-
   for (i = 0; features[i].type; i++) {
     switch (features[i].flags & FEAT_MASK) {
     case FEAT_NONE: /* you're on your own */
@@ -785,6 +782,11 @@ feature_init(void)
       break;
     }
   }
+
+  cli_magic(&his) = CLIENT_MAGIC;
+  cli_status(&his) = STAT_SERVER;
+  feature_notify_servername();
+  feature_notify_serverinfo();
 }
 
 /** Report all F-lines to a user.