From ceb76ae6da53d38b4482f34a214bcdd9871ec0dd Mon Sep 17 00:00:00 2001 From: codemastr Date: Sun, 19 Aug 2001 22:36:13 +0000 Subject: [PATCH] Fixed another alias {} bug --- Changes | 1 + src/s_conf.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index f28c1f725..9cfbd2cf9 100644 --- a/Changes +++ b/Changes @@ -808,3 +808,4 @@ seen. gmtime warning still there - Disabled #undef PROPER_CORE - Added alias {} to doc/example.conf - Fixed a bug in alias {} found by RaYmAn +- Fixed another alias {} bug diff --git a/src/s_conf.c b/src/s_conf.c index 99b05e1fd..f2c23d911 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -3265,7 +3265,7 @@ void validate_configuration(void) } else { for (alias_ptr = conf_alias; alias_ptr; alias_ptr = (ConfigItem_alias *)alias_ptr->next) { - if (!BadPtr(alias_ptr->nick)) + if (BadPtr(alias_ptr->nick)) ircstrdup(alias_ptr->nick, alias_ptr->alias); if (alias_ptr->type != ALIAS_SERVICES && alias_ptr->type != ALIAS_STATS && alias_ptr->type != ALIAS_NORMAL) { alias_ptr->type = ALIAS_SERVICES;