From 74c8913f72e6d48c88a01155ef5fe5ca20cc2bb1 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 23 Dec 2006 23:06:37 +0000 Subject: Hash rehashing change git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6080 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules.cpp') 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; -- cgit v1.3.1-10-gc9f91