diff options
| author | 2008-11-17 19:45:38 +0000 | |
|---|---|---|
| committer | 2008-11-17 19:45:38 +0000 | |
| commit | 125a7442f72800dc86b58bcd53e54eb73c3732af (patch) | |
| tree | 7d31010f154a01b8d2b36bff1089b9dd896206d1 /src/usermanager.cpp | |
| parent | Don't burst expired X:, should help stop bounce wars.. (diff) | |
| download | inspircd++-125a7442f72800dc86b58bcd53e54eb73c3732af.tar.gz inspircd++-125a7442f72800dc86b58bcd53e54eb73c3732af.tar.bz2 inspircd++-125a7442f72800dc86b58bcd53e54eb73c3732af.zip | |
Fix recursion in QuitUser
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10809 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/usermanager.cpp')
| -rw-r--r-- | src/usermanager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 521dcec41..58c9b4e3e 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -172,8 +172,15 @@ void UserManager::AddUser(InspIRCd* Instance, int socket, int port, bool iscache void UserManager::QuitUser(User *user, const std::string &quitreason, const char* operreason) { + if (user->quitting) + { + ServerInstance->Logs->Log("CULLLIST",DEBUG, "*** Warning *** - You tried to quit a user (%s) twice. Did your module call QuitUser twice?", user->nick.c_str()); + return; + } + ServerInstance->Logs->Log("USERS", DEBUG,"QuitUser: %s '%s'", user->nick.c_str(), quitreason.c_str()); user->Write("ERROR :Closing link (%s@%s) [%s]", user->ident.c_str(), user->host.c_str(), *operreason ? operreason : quitreason.c_str()); + user->quitting = true; user->quietquit = false; user->quitmsg = quitreason; |
