From d7a0cd3db1e8b64a6f706f1831e645ad69aa7927 Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 9 Apr 2008 15:34:54 +0000 Subject: 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 --- include/usermanager.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/usermanager.h') 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 */ -- cgit v1.2.3