From 6adc7d382fba80b4f4511583dd275d03c34ee5f4 Mon Sep 17 00:00:00 2001 From: Michael Ortmann <41313082+michaelortmann@users.noreply.github.com> Date: Fri, 12 Jul 2024 15:12:34 +0200 Subject: [PATCH] later --- src/mod/python.mod/python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/python.mod/python.c b/src/mod/python.mod/python.c index 2bf10a387..a040e313e 100644 --- a/src/mod/python.mod/python.c +++ b/src/mod/python.mod/python.c @@ -143,7 +143,6 @@ char *python_start(Function *global_funcs) if (forbid_reload) /* Reloading, reexecuting PyDateTime_IMPORT, would crash */ return "You can't reload the " MODULE_NAME " module (it would crash the bot)"; - forbid_reload = 1; /* Assign the core function table. After this point you use all normal * functions defined in src/mod/modules.h @@ -164,6 +163,7 @@ char *python_start(Function *global_funcs) } // irc.mod depends on server.mod and channels.mod, so those were implicitely loaded + forbid_reload = 1; if ((s = init_python())) return s;