mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 12:26:40 +02:00
core: send all command line parameters not beginning with a dash to all plugins, add info "auto_load_scripts"
This fixes an issue with IRC URL given on command line when it starts with `ircs://` or `irc6://`: the server is not created at all (only `irc://` works fine).
This commit is contained in:
@@ -1302,6 +1302,10 @@ php_weechat_log_message (char *message)
|
||||
int
|
||||
weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
|
||||
weechat_php_plugin = plugin;
|
||||
|
||||
/* set interpreter name and version */
|
||||
@@ -1341,7 +1345,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
PG(report_zend_debug) = 0; /* Turn off --enable-debug output */
|
||||
|
||||
php_quiet = 1;
|
||||
plugin_script_init (weechat_php_plugin, argc, argv, &php_data);
|
||||
plugin_script_init (weechat_php_plugin, &php_data);
|
||||
php_quiet = 0;
|
||||
|
||||
plugin_script_display_short_list (weechat_php_plugin,
|
||||
|
||||
Reference in New Issue
Block a user