diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-09 15:34:54 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-09 15:34:54 +0000 |
commit | d7a0cd3db1e8b64a6f706f1831e645ad69aa7927 (patch) | |
tree | 16c271fcada893eb55778952251bd89ee836ae52 /include | |
parent | 621de565e15f9301b1e735b4c758fb805da57d86 (diff) |
Move QuitUser into UserManager class, and unstaticize it. This prepares for some benchmarking lulz on object pooling I plan to do today, as well as making more sense now we *have* a manager class
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9442 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/usermanager.h | 8 | ||||
-rw-r--r-- | include/users.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/usermanager.h b/include/usermanager.h index 552fb4136..8b6d3e9bd 100644 --- a/include/usermanager.h +++ b/include/usermanager.h @@ -73,6 +73,14 @@ class CoreExport UserManager : public classbase */ void AddClient(InspIRCd* Instance, int socket, int port, bool iscached, int socketfamily, sockaddr* ip, const std::string &targetip); + /** Disconnect a user gracefully + * @param user The user to remove + * @param r The quit reason to show to normal users + * @param oreason The quit reason to show to opers + * @return Although this function has no return type, on exit the user provided will no longer exist. + */ + void QuitUser(User *user, const std::string &quitreason, const char* operreason = ""); + /** 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 0fa51268d..c563431d2 100644 --- a/include/users.h +++ b/include/users.h @@ -878,14 +878,6 @@ class CoreExport User : public connection */ void CloseSocket(); - /** Disconnect a user gracefully - * @param user The user to remove - * @param r The quit reason to show to normal users - * @param oreason The quit reason to show to opers - * @return Although this function has no return type, on exit the user provided will no longer exist. - */ - static void QuitUser(InspIRCd* Instance, User *user, const std::string &r, const char* oreason = ""); - /** Add the user to WHOWAS system */ void AddToWhoWas(); |