Skip to content

Commit

Permalink
later
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann committed Jul 12, 2024
1 parent 9159f9b commit 6adc7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod/python.mod/python.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;

Expand Down

0 comments on commit 6adc7d3

Please sign in to comment.