1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 11:13:12 +02:00

core: allow multiple options "-r" ("--run-command") in command line arguments (closes #1248)

This commit is contained in:
Sébastien Helleu
2018-09-06 21:52:02 +02:00
parent 8945e70f81
commit fcf7469d76
25 changed files with 110 additions and 64 deletions
+11 -1
View File
@@ -8352,10 +8352,20 @@ command_exec_list (const char *command_list)
void
command_startup (int plugins_loaded)
{
int i;
if (plugins_loaded)
{
command_exec_list (CONFIG_STRING(config_startup_command_after_plugins));
command_exec_list (weechat_startup_commands);
if (weechat_startup_commands)
{
for (i = 0; i < weelist_size (weechat_startup_commands); i++)
{
command_exec_list (
weelist_string (
weelist_get (weechat_startup_commands, i)));
}
}
}
else
command_exec_list (CONFIG_STRING(config_startup_command_before_plugins));