From b87f79a2714c91ac6e6bd4875abe54fc90cf4e5b Mon Sep 17 00:00:00 2001 From: codemastr Date: Sun, 24 Nov 2002 23:32:25 +0000 Subject: [PATCH] Made alias{}'s get rehashed --- Changes | 1 + src/s_conf.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 77e68f9e0..471f7e88d 100644 --- a/Changes +++ b/Changes @@ -1678,3 +1678,4 @@ seen. gmtime warning still there report errors better - Fixed sendto_ routines to use slot number as index into sentalong array - Fixed a conf3 bug +- Made alias {}'s get rehashed diff --git a/src/s_conf.c b/src/s_conf.c index dc21bc03e..35f66d8f1 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -1333,7 +1333,6 @@ void config_rehash() DelListItem(log_ptr, conf_log); MyFree(log_ptr); } -/* FIX for (alias_ptr = conf_alias; alias_ptr; alias_ptr = (ConfigItem_alias *)next) { aCommand *cmptr = find_Command(alias_ptr->alias, 0, 0); ConfigItem_alias_format *fmt; @@ -1346,6 +1345,7 @@ void config_rehash() { next2 = (ListStruct *)fmt->next; ircfree(fmt->format); + ircfree(fmt->nick); ircfree(fmt->parameters); DelListItem(fmt, alias_ptr->format); MyFree(fmt); @@ -1354,7 +1354,6 @@ void config_rehash() DelListItem(alias_ptr, conf_alias); MyFree(alias_ptr); } - */ for (include_ptr = conf_include; include_ptr; include_ptr = (ConfigItem_include *)next) { next = (ListStruct *)include_ptr->next;