summaryrefslogtreecommitdiff
path: root/include/usermanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usermanager.h')
-rw-r--r--include/usermanager.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/usermanager.h b/include/usermanager.h
index 5ca6401bb..9cc3e0309 100644
--- a/include/usermanager.h
+++ b/include/usermanager.h
@@ -36,6 +36,18 @@ class CoreExport UserManager : public classbase
*/
clonemap global_clones;
+ /** Add a client to the system.
+ * This will create a new User, insert it into the user_hash,
+ * initialize it as not yet registered, and add it to the socket engine.
+ * @param Instance a pointer to the server instance
+ * @param socket The socket id (file descriptor) this user is on
+ * @param port The port number this user connected on
+ * @param iscached This variable is reserved for future use
+ * @param ip The IP address of the user
+ * @return This function has no return value, but a call to AddClient may remove the user.
+ */
+ void AddClient(InspIRCd* Instance, int socket, int port, bool iscached, int socketfamily, sockaddr* ip);
+
/** Add a user to the local clone map
* @param user The user to add
*/