diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-21 02:08:41 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-21 02:08:41 +0000 |
commit | a69a7d1dd17065764cec9a0d36ea7626d7945d04 (patch) | |
tree | dfeb8e65acbde1cb7f7ca1850e43feb37e7b0e39 | |
parent | a068c47d71e9a922b145b7552b3a64d638c92171 (diff) |
Prevent fake users from quitting
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11748 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/usermanager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index b9eff5a39..2189b1c8a 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -177,6 +177,12 @@ void UserManager::QuitUser(User *user, const std::string &quitreason, const char return; } + if (IS_FAKE(user)) + { + ServerInstance->Logs->Log("CULLLIST",DEBUG, "*** Warning *** - You tried to quit a fake user (%s)", user->nick.c_str()); + return; + } + user->quitting = true; ServerInstance->Logs->Log("USERS", DEBUG, "QuitUser: %s '%s'", user->nick.c_str(), quitreason.c_str()); |