diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-01 21:43:41 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-01 21:43:41 +0000 |
commit | 3198b0ba777922c6442735af3f094f61ff1bfb19 (patch) | |
tree | 86c824f314f6281954cea0a68c809bdb9661ead3 /src | |
parent | 77f2c9bb246e5d48240f3f869ae625cd9f77568f (diff) |
Fix re-generation of 005 on rehash
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7202 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_rehash.cpp | 3 | ||||
-rw-r--r-- | src/inspircd.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd_rehash.cpp b/src/cmd_rehash.cpp index 9823f1ab3..b856fa888 100644 --- a/src/cmd_rehash.cpp +++ b/src/cmd_rehash.cpp @@ -43,13 +43,14 @@ CmdResult cmd_rehash::Handle (const char** parameters, int pcnt, userrec *user) ServerInstance->Config->Read(false,user); ServerInstance->Res->Rehash(); ServerInstance->ResetMaxBans(); - ServerInstance->BuildISupport(); } if (old_disabled != ServerInstance->Config->DisabledCommands) InitializeDisabledCommands(ServerInstance->Config->DisabledCommands, ServerInstance); FOREACH_MOD(I_OnRehash,OnRehash(user, parameter)); + ServerInstance->BuildISupport(); + return CMD_SUCCESS; } diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 41b524628..4e11318cc 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -204,8 +204,8 @@ void InspIRCd::Rehash(int status) SI->Config->Read(false,NULL); SI->ResetMaxBans(); SI->Res->Rehash(); - SI->BuildISupport(); FOREACH_MOD_I(SI,I_OnRehash,OnRehash(NULL,"")); + SI->BuildISupport(); } void InspIRCd::ResetMaxBans() |