summaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-21 02:08:41 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-21 02:08:41 +0000
commita69a7d1dd17065764cec9a0d36ea7626d7945d04 (patch)
treedfeb8e65acbde1cb7f7ca1850e43feb37e7b0e39 /src/usermanager.cpp
parenta068c47d71e9a922b145b7552b3a64d638c92171 (diff)
Prevent fake users from quitting
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11748 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r--src/usermanager.cpp6
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());