diff options
Diffstat (limited to 'src/usermanager.cpp')
-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()); |