diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-10-03 21:30:58 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-10-03 21:30:58 +0200 |
commit | 8dc4f1dd28af8693f7eeb3a268411f3fae242d7b (patch) | |
tree | 4c9822e6081c10fa4356d470368621c1e5afc56b /src | |
parent | 7949146687ee8e88bfcfcfb27b7466692b10cedf (diff) | |
download | weechat-8dc4f1dd28af8693f7eeb3a268411f3fae242d7b.zip |
php: set php_quiet to 1 when loading/reloading/unloading a script with option "-q"
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/php/weechat-php.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/php/weechat-php.c b/src/plugins/php/weechat-php.c index 133e7ca88..a93386b52 100644 --- a/src/plugins/php/weechat-php.c +++ b/src/plugins/php/weechat-php.c @@ -38,14 +38,14 @@ WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); WEECHAT_PLUGIN_PRIORITY(4000); struct t_weechat_plugin *weechat_php_plugin; -struct t_hashtable *weechat_php_func_map = NULL; -int php_quiet = 0; +int php_quiet; struct t_plugin_script *php_scripts = NULL; struct t_plugin_script *last_php_script = NULL; struct t_plugin_script *php_current_script = NULL; struct t_plugin_script *php_registered_script = NULL; const char *php_current_script_filename = NULL; +struct t_hashtable *weechat_php_func_map = NULL; /* * string used to execute action "install": @@ -836,6 +836,7 @@ weechat_php_command_cb (const void *pointer, void *data, ptr_name = argv_eol[2]; if (strncmp (ptr_name, "-q ", 3) == 0) { + php_quiet = 1; ptr_name += 3; while (ptr_name[0] == ' ') { @@ -858,6 +859,7 @@ weechat_php_command_cb (const void *pointer, void *data, { weechat_php_unload_name (ptr_name); } + php_quiet = 0; } else WEECHAT_COMMAND_ERROR; |