Fix HIS_SERVER* handling when they are defaulted.
[ircu2.10.12-pk.git] / ircd / ircd_features.c
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.