]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Document the need for the fake client
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 28 Aug 2007 13:50:04 +0000 (13:50 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 28 Aug 2007 13:50:04 +0000 (13:50 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7944 e03df62e-2008-0410-955e-edbf42e46eb7

include/inspircd.h

index dbbc0375e732bc8a6be105eb96b446ff28405f93..bc8055f679eb78bb76dd2a1ecfc253e1da6669d0 100644 (file)
@@ -396,6 +396,12 @@ class CoreExport InspIRCd : public classbase
        std::map<InspSocket*,InspSocket*> 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;