1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-31 18:07:14 +01:00

Insert a custom part reason identifier to be able to distinct between kick and ban.

This commit is contained in:
Sandu Liviu Catalin 2016-10-25 16:16:59 +03:00
parent adbacfca11
commit 0111cc5a46

View File

@ -264,7 +264,8 @@ static const EnumElement g_PartReasonEnum[] = {
{_SC("Kick"), vcmpDisconnectReasonKick}, {_SC("Kick"), vcmpDisconnectReasonKick},
{_SC("Crash"), vcmpDisconnectReasonCrash}, {_SC("Crash"), vcmpDisconnectReasonCrash},
{_SC("AntiCheat"), vcmpDisconnectReasonAntiCheat}, {_SC("AntiCheat"), vcmpDisconnectReasonAntiCheat},
{_SC("Max"), vcmpDisconnectReasonAntiCheat} {_SC("Ban"), vcmpDisconnectReasonAntiCheat + 1},
{_SC("Max"), vcmpDisconnectReasonAntiCheat + 1}
}; };
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------