]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules.cpp
Use it here, too
[user/henk/code/inspircd.git] / src / modules.cpp
index 31216bef3273880b1b1be6ee635a8ba09f3338f4..906efd862f7e9ea09bb3f2c539c92e24d89b513d 100644 (file)
  */
 
 #include "inspircd.h"
-#include "configreader.h"
-#include "users.h"
-#include "modules.h"
 #include "wildcard.h"
-#include "mode.h"
 #include "xline.h"
 #include "socket.h"
 #include "socketengine.h"
@@ -692,15 +688,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 +751,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)