diff --git a/hooks.c b/hooks.c index 91fda0d..4766478 100644 --- a/hooks.c +++ b/hooks.c @@ -100,6 +100,7 @@ struct luadata *hooks_init(char *script) void hooks_exit(struct luadata *ld, char *reason) { if (ld) { + l_function(ld->L, "otr_exit"); olog(LOG_NOTICE, "unloading Lua: %s", reason); free(ld->script); lua_close(ld->L);