summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-03 00:24:04 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-03 00:24:04 +0000
commit8b8923d15564caeeb14a6c5a218b9936a93c3ae4 (patch)
treecf275c8dab8606af2f7287405214ba1bca66e9c3
parentefdffbdc178336e027df594282ca60e109eb6166 (diff)
Rebuild 005 on rehash. Tracker: bug #234
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6617 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/inspircd.h8
-rw-r--r--src/cmd_rehash.cpp1
-rw-r--r--src/inspircd.cpp1
3 files changed, 6 insertions, 4 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index ee02a32b5..fc5a15da1 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -308,10 +308,6 @@ class InspIRCd : public classbase
*/
void EraseModule(int j);
- /** Build the ISUPPORT string by triggering all modules On005Numeric events
- */
- void BuildISupport();
-
/** Move a given module to a specific slot in the list
* @param modulename The module name to relocate
* @param slot The slot to move the module into
@@ -436,6 +432,10 @@ class InspIRCd : public classbase
public:
+ /** Build the ISUPPORT string by triggering all modules On005Numeric events
+ */
+ void BuildISupport();
+
/** Number of unregistered users online right now.
* (Unregistered means before USER/NICK/dns)
*/
diff --git a/src/cmd_rehash.cpp b/src/cmd_rehash.cpp
index 6f454383d..815e241f0 100644
--- a/src/cmd_rehash.cpp
+++ b/src/cmd_rehash.cpp
@@ -42,6 +42,7 @@ 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);
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index a259bf349..4b2690c49 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -151,6 +151,7 @@ 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,""));
}