summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/perl/weechat-perl-api.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-07-29 08:54:52 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-07-29 08:54:52 +0200
commit0931308c2334c9208d8682cc452cd05a33d53ae8 (patch)
treea00e15ccb1c3d5d98cc3e21d720a5b7efe6c9c36 /src/plugins/scripts/perl/weechat-perl-api.c
parentcdba3da0b743b3012bf6811e875d245c011d7768 (diff)
downloadweechat-0931308c2334c9208d8682cc452cd05a33d53ae8.zip
scripts: fix function unhook_all, fix deletion of configuration files when script is unloaded (bug #36977)
Diffstat (limited to 'src/plugins/scripts/perl/weechat-perl-api.c')
-rw-r--r--src/plugins/scripts/perl/weechat-perl-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scripts/perl/weechat-perl-api.c b/src/plugins/scripts/perl/weechat-perl-api.c
index 8a51ecbcc..9434e3410 100644
--- a/src/plugins/scripts/perl/weechat-perl-api.c
+++ b/src/plugins/scripts/perl/weechat-perl-api.c
@@ -3480,7 +3480,7 @@ XS (XS_weechat_api_unhook_all)
API_FUNC(1, "unhook_all", API_RETURN_ERROR);
- script_api_unhook_all (perl_current_script);
+ script_api_unhook_all (weechat_perl_plugin, perl_current_script);
API_RETURN_OK;
}