summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-12-23 23:06:37 +0000
committerGravatar brain2006-12-23 23:06:37 +0000
commit74c8913f72e6d48c88a01155ef5fe5ca20cc2bb1 (patch)
tree500634864eb634a89af543a3f8b6f663543f5589 /src/modules.cpp
parentClose logfile on rehash and reopen (it was only doing this on sighup for some... (diff)
Hash rehashing change
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6080 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 8c38914e9..acd2ae469 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -345,6 +345,7 @@ const std::string& InspIRCd::GetModuleName(Module* m)
void InspIRCd::RehashServer()
{
this->WriteOpers("*** Rehashing config file");
+ this->RehashUsersAndChans();
this->Config->Read(false,NULL);
}
@@ -358,7 +359,7 @@ void InspIRCd::RehashServer()
chanrec* InspIRCd::GetChannelIndex(long index)
{
int target = 0;
- for (chan_hash::iterator n = this->chanlist.begin(); n != this->chanlist.end(); n++, target++)
+ for (chan_hash::iterator n = this->chanlist->begin(); n != this->chanlist->end(); n++, target++)
{
if (index == target)
return n->second;