From: w00t Date: Tue, 28 Aug 2007 13:50:04 +0000 (+0000) Subject: Document the need for the fake client X-Git-Tag: v2.0.23~4638 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=7d241d39ff055fdb52ce8dc1db0058e7e9a92eb4;p=user%2Fhenk%2Fcode%2Finspircd.git Document the need for the fake client git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7944 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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;