X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/5a2c7cf6485440d208e5f0ec319e22b6fa317a41..30874d6682a37bc1d8f3d76fd90afde6a0f3fce7:/src/mod-python.c diff --git a/src/mod-python.c b/src/mod-python.c index 62fce59..2b2397a 100644 --- a/src/mod-python.c +++ b/src/mod-python.c @@ -1847,7 +1847,7 @@ python_finalize(void) { } static void -python_cleanup(void) { +python_cleanup(UNUSED_ARG(void *extra)) { /* Called on shutdown of the python module (or before reloading) */ @@ -1870,7 +1870,7 @@ static MODCMD_FUNC(cmd_reload) { /* reload the python system completely */ log_module(PY_LOG, LOG_INFO, "Shutting python down"); - python_cleanup(); + python_cleanup(NULL); log_module(PY_LOG, LOG_INFO, "Loading python stuff"); if(python_load()) { reply("PYMSG_RELOAD_SUCCESS"); @@ -2018,7 +2018,7 @@ int python_init(void) { //TODO: reg_allchanmsg_func //TODO: reg_user_mode_func - reg_exit_func(python_cleanup); + reg_exit_func(python_cleanup, NULL); python_load(); return 1;