mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 21:06:38 +02:00
script: fix crash when a /script command triggers another /script command (issue #923)
This commit is contained in:
@@ -1300,6 +1300,9 @@ script_action_run_all ()
|
||||
| WEECHAT_STRING_SPLIT_STRIP_RIGHT
|
||||
| WEECHAT_STRING_SPLIT_COLLAPSE_SEPS,
|
||||
0, &num_actions);
|
||||
|
||||
script_action_clear ();
|
||||
|
||||
if (actions)
|
||||
{
|
||||
for (i = 0; i < num_actions; i++)
|
||||
@@ -1564,8 +1567,6 @@ script_action_run_all ()
|
||||
weechat_string_free_split (actions);
|
||||
}
|
||||
|
||||
script_action_clear ();
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user