From 058c65074e3769f2666c1c1f97c7d1704f469bd6 Mon Sep 17 00:00:00 2001 From: Tehom Date: Thu, 10 May 2018 19:40:58 -0400 Subject: [PATCH] Handle scripts with negative intervals. --- evennia/scripts/scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/scripts/scripts.py b/evennia/scripts/scripts.py index 2cade332814..2b4bea35694 100644 --- a/evennia/scripts/scripts.py +++ b/evennia/scripts/scripts.py @@ -328,7 +328,7 @@ def start(self, force_restart=False): """ if self.is_active and not force_restart: # The script is already running, but make sure we have a _task if this is after a cache flush - if not self.ndb._task: + if not self.ndb._task and self.db_interval >= 0: self.ndb._task = ExtendedLoopingCall(self._step_task) try: start_delay, callcount = SCRIPT_FLUSH_TIMERS[self.id]