mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-13 04:29:03 -04:00
Prevent fake users from quitting
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11748 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
a068c47d71
commit
a69a7d1dd1
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user