summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp4
-rw-r--r--src/modules.cpp4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index dea2f0a58..449bb005b 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -396,8 +396,10 @@ InspIRCd::InspIRCd(int argc, char** argv)
GlobalCulls(this),
HandleIsNick(this),
HandleIsIdent(this),
+ HandleFindDescriptor(this),
IsNick(&HandleIsNick),
- IsIdent(&HandleIsIdent)
+ IsIdent(&HandleIsIdent),
+ FindDescriptor(&HandleFindDescriptor)
{
int found_ports = 0;
FailedPortList pl;
diff --git a/src/modules.cpp b/src/modules.cpp
index 720de3b96..28d746323 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -755,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)