mirror of
https://github.com/pissnet/pissircd.git
synced 2025-07-31 15:32:26 +01:00
Added HOOKTYPE_REHASH_COMPLETE
This commit is contained in:
parent
376fecbf18
commit
ee54d529b2
3 changed files with 8 additions and 1 deletions
3
Changes
3
Changes
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ..");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue