From 7b37bf701ebd629246b8cbee9d7021657101e5d5 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 17 Feb 2014 22:01:14 +0100 Subject: guile: fix module used after unload of a script --- src/plugins/guile/weechat-guile.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/guile/weechat-guile.c') diff --git a/src/plugins/guile/weechat-guile.c b/src/plugins/guile/weechat-guile.c index 371b840e5..221b288b5 100644 --- a/src/plugins/guile/weechat-guile.c +++ b/src/plugins/guile/weechat-guile.c @@ -495,6 +495,9 @@ weechat_guile_unload (struct t_plugin_script *script) if (interpreter) weechat_guile_catch (scm_gc_unprotect_object, interpreter); + if (guile_current_script) + scm_set_current_module ((SCM)(guile_current_script->interpreter)); + (void) weechat_hook_signal_send ("guile_script_unloaded", WEECHAT_HOOK_SIGNAL_STRING, filename); if (filename) -- cgit v1.2.3