Added HOOKTYPE_REHASH_COMPLETE

This commit is contained in:
codemastr 2004-02-16 23:03:42 +00:00
parent 376fecbf18
commit ee54d529b2
3 changed files with 8 additions and 1 deletions

View file

@ -2878,3 +2878,6 @@ seen. gmtime warning still there
(#0001545) reported by MagicalTux2
- Added [OLD?] flag in /module so you can easily spot old beta* modules.
- Modulized: samode, sajoin, sapart, kick, topic, invite, list
- Added HOOKTYPE_REHASH_COMPLETE to allow permanent modules to reload
command overrides. (#0001553) reported by AngryWolf

View file

@ -531,6 +531,7 @@ int CallCmdoverride(Cmdoverride *ovr, aClient *cptr, aClient *sptr, int parc, ch
#define HOOKTYPE_TKL_EXCEPT 35
#define HOOKTYPE_UMODE_CHANGE 36
#define HOOKTYPE_TOPIC 37
#define HOOKTYPE_REHASH_COMPLETE 38
/* Module flags */
#define MODFLAG_NONE 0x0000

View file

@ -1474,10 +1474,13 @@ int init_conf(char *rootconf, int rehash)
}
config_free(conf);
conf = NULL;
#ifndef STATIC_LINKING
if (rehash)
{
#ifndef STATIC_LINKING
module_loadall(0);
#endif
RunHook0(HOOKTYPE_REHASH_COMPLETE);
}
do_weird_shun_stuff();
nextconnect = TStime() + 1; /* check for autoconnects */
config_status("Configuration loaded without any problems ..");