From 50a2c71ba9e6c23dcd193b62257d04a1dd551a44 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Fri, 15 Jul 2005 21:28:34 +0000 Subject: [PATCH] Fix HIS_SERVER* handling when they are defaulted. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1450 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 3 +++ ircd/ircd_features.c | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f1c26f3..014f922 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-07-15 Michael Poole + * 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. diff --git a/ircd/ircd_features.c b/ircd/ircd_features.c index 8f5b1ce..ff4a74a 100644 --- a/ircd/ircd_features.c +++ b/ircd/ircd_features.c @@ -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. -- 2.20.1