summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 13:50:04 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 13:50:04 +0000
commit7d241d39ff055fdb52ce8dc1db0058e7e9a92eb4 (patch)
tree4c3aa951fb75f202c8813cf3f63dabebac160ec8
parent19157777c5f977fddbcfdc8cdad78e12bf0d6bbb (diff)
Document the need for the fake client
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7944 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/inspircd.h6
1 files changed, 6 insertions, 0 deletions
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<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;