summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/usermanager.cpp6
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());