diff --git a/src/d_netcmd.c b/src/d_netcmd.c index c36922275..0a38ed2b6 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -3918,6 +3918,12 @@ void Schedule_Run(void) return; } + if (K_CanChangeRules() == false) + { + // Don't engage in automation while in a restricted context. + return; + } + for (i = 0; i < schedule_len; i++) { scheduleTask_t *task = schedule[i]; @@ -4048,6 +4054,12 @@ void Automate_Run(automateEvents_t type) return; } + if (K_CanChangeRules() == false) + { + // Don't engage in automation while in a restricted context. + return; + } + #ifdef PARANOIA if (type >= AEV__MAX) {