From 7d241d39ff055fdb52ce8dc1db0058e7e9a92eb4 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 28 Aug 2007 13:50:04 +0000 Subject: Document the need for the fake client git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7944 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/inspircd.h b/include/inspircd.h index dbbc0375e..bc8055f67 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -396,6 +396,12 @@ class CoreExport InspIRCd : public classbase std::map SocketCull; /** Globally accessible fake user record. This is used to force mode changes etc across s2s, etc.. bit ugly, but.. better than how this was done in 1.1 + * Reason for it: + * kludge alert! + * SendMode expects a userrec* to send the numeric replies + * back to, so we create it a fake user that isnt in the user + * hash and set its descriptor to FD_MAGIC_NUMBER so the data + * falls into the abyss :p */ userrec *FakeClient; -- cgit v1.2.3