diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-17 23:13:50 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-17 23:13:50 +0000 |
commit | 47c4da37d6b9c7f443ad871771558e01ffec791a (patch) | |
tree | 63b259d177f8aa0ea902a4e57c270243d9e18f52 | |
parent | 2d2f13987a2cf3155da3f633f388e5a9c043ef9c (diff) |
Prevent fake users from quitting
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11743 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 adec2fe16..b9eff5a39 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -171,6 +171,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()); |