diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-13 03:51:04 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-13 03:51:04 +0000 |
commit | de6bba7882bc53b5a23e4854069d4846616f2001 (patch) | |
tree | e1a2210945e0d876dc27d71d71431dd1b308b867 /include | |
parent | 2192a9f58aae466a42d60279fb34ee3c5d2950a1 (diff) |
Move User::AddClient to UserManager::AddClient. WARNING: I assure you this is currently WRONG as I was playing with moving a few bits to the constructor.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8706 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/usermanager.h | 12 | ||||
-rw-r--r-- | include/users.h | 12 |
2 files changed, 12 insertions, 12 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 */ diff --git a/include/users.h b/include/users.h index 67ea63a31..c795ae1a4 100644 --- a/include/users.h +++ b/include/users.h @@ -916,18 +916,6 @@ class CoreExport User : public connection */ bool ForceNickChange(const char* newnick); - /** 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. - */ - static void AddClient(InspIRCd* Instance, int socket, int port, bool iscached, int socketfamily, sockaddr* ip); - /** Oper down. * This will clear the +o usermode and unset the user's oper type */ |