]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules.cpp
Implement feature in bug #395 reported by stealth, and tidy up a bit
[user/henk/code/inspircd.git] / src / modules.cpp
index 31216bef3273880b1b1be6ee635a8ba09f3338f4..28d746323eb2cb2f6871dff97945616e2edb47de 100644 (file)
@@ -692,15 +692,6 @@ const std::string& InspIRCd::GetModuleName(Module* m)
        return nothing; /* As above */
 }
 
-void InspIRCd::RehashServer()
-{
-       this->WriteOpers("*** Rehashing config file");
-       this->RehashUsersAndChans();
-       this->Config->Read(false,NULL);
-       this->ResetMaxBans();
-       this->Res->Rehash();
-}
-
 /* This is ugly, yes, but hash_map's arent designed to be
  * addressed in this manner, and this is a bit of a kludge.
  * Luckily its a specialist function and rarely used by
@@ -764,9 +755,9 @@ void InspIRCd::DumpText(userrec* User, const std::string &LinePrefix, stringstre
        User->WriteServ(CompleteLine);
 }
 
-userrec* InspIRCd::FindDescriptor(int socket)
+userrec* FindDescriptorHandler::Call(int socket)
 {
-       return reinterpret_cast<userrec*>(this->SE->GetRef(socket));
+       return reinterpret_cast<userrec*>(Server->SE->GetRef(socket));
 }
 
 bool InspIRCd::AddMode(ModeHandler* mh, const unsigned char mode)