summaryrefslogtreecommitdiff
path: root/src/plugins/php
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-10-03 21:33:30 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-10-03 21:33:30 +0200
commit31dd88639008bf65bc401fe01e6b1feefce1cfc5 (patch)
tree33cacbd4331290fa843813557db50338bc692b7a /src/plugins/php
parent33b23c8a7441b614b701ade489fcbbb655cedead (diff)
downloadweechat-31dd88639008bf65bc401fe01e6b1feefce1cfc5.zip
php: set php_quiet to 1 during plugin end
Diffstat (limited to 'src/plugins/php')
-rw-r--r--src/plugins/php/weechat-php.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/php/weechat-php.c b/src/plugins/php/weechat-php.c
index c6d02f13c..a4f1946fc 100644
--- a/src/plugins/php/weechat-php.c
+++ b/src/plugins/php/weechat-php.c
@@ -1156,7 +1156,10 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
int
weechat_plugin_end (struct t_weechat_plugin *plugin)
{
+ /* unload all scripts */
+ php_quiet = 1;
plugin_script_end (plugin, &php_scripts, &weechat_php_unload_all);
+ php_quiet = 0;
if (weechat_php_func_map)
{