return;
}
- if(Ban_MaybeEnforceBan(self))
+ if(Ban_MaybeEnforceBanOnce(self))
return;
DecodeLevelParms();
entity head;
float ret;
- if(Ban_MaybeEnforceBan(source))
- return 0;
-
if(!teamsay && !privatesay)
if(substring(msgin, 0, 1) == " ")
msgin = substring(msgin, 1, strlen(msgin) - 1); // work around DP say bug (say_team does not have this!)
void SV_ParseClientCommand(string command)
{
+ // if we're banned, don't even parse the command
+ if(Ban_MaybeEnforceBanOnce(self))
+ return;
+
float argc = tokenize_console(command);
// for the mutator hook system
return FALSE;
}
+.float ban_checked;
+float Ban_MaybeEnforceBanOnce(entity client)
+{
+ if(client.ban_checked)
+ return FALSE;
+ client.ban_checked = TRUE;
+ return Ban_MaybeEnforceBan(self);
+}
+
string Ban_Enforce(float i, string reason)
{
string s;