From 529f16e84b4ba1328a13be32e40a71156c4725f8 Mon Sep 17 00:00:00 2001 From: brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> Date: Wed, 25 Jul 2007 17:36:13 +0000 Subject: Shorthand macros DEFINE_HANDLER1()...DEFINE_HANDLER9() to save on defining functor classes that just implement Call() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7569 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules.cpp') 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) -- cgit v1.2.3