invoke otr_exit on exit

This commit is contained in:
Jan-Piet Mens
2015-09-20 17:01:05 +02:00
parent 6dd03bb0e6
commit 7ab78eeb03
+1
View File
@@ -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);