summaryrefslogtreecommitdiff
path: root/src/plugins/script/script-action.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-06-18 10:37:12 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-07-04 21:57:41 +0200
commitf8116216110504bb5d85ca863189f68617f22188 (patch)
tree8d863fac874b5535a0488aa077f8de4595632713 /src/plugins/script/script-action.h
parent6c8d6eef58603cd3b70d7cc5b7325ee200dd81cf (diff)
downloadweechat-f8116216110504bb5d85ca863189f68617f22188.zip
script: fix buffer used by command `/script list -i|-il|-o|-ol`
The command is now executed on the buffer where it is received instead of the current buffer (in most cases this is the same buffer, but could be different sometimes).
Diffstat (limited to 'src/plugins/script/script-action.h')
-rw-r--r--src/plugins/script/script-action.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/script/script-action.h b/src/plugins/script/script-action.h
index 7ef091421..96afc288b 100644
--- a/src/plugins/script/script-action.h
+++ b/src/plugins/script/script-action.h
@@ -23,8 +23,11 @@
extern char **script_actions;
extern int script_action_run_all ();
-extern void script_action_schedule (const char *action, int need_repository,
- int error_repository, int quiet);
+extern void script_action_schedule (struct t_gui_buffer *buffer,
+ const char *action,
+ int need_repository,
+ int error_repository,
+ int quiet);
extern void script_action_end ();
#endif /* WEECHAT_PLUGIN_SCRIPT_ACTION_H */