summaryrefslogtreecommitdiff
path: root/src/plugins/plugin-script-api.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-11-22 08:14:29 +0100
committerSébastien Helleu <flashcode@flashtux.org>2014-11-22 08:14:29 +0100
commit1ef3237b6b2f7ed07faccc0c1ab897f37827421d (patch)
treeb236f04b6efcd49667a389362030fb4dd4b0cb24 /src/plugins/plugin-script-api.h
parente253a2509ae648a358991103fafbd18d21bb06cd (diff)
downloadweechat-1ef3237b6b2f7ed07faccc0c1ab897f37827421d.zip
api: return value in function command(), remove WeeChat error after command callback if return code is WEECHAT_RC_ERROR
Diffstat (limited to 'src/plugins/plugin-script-api.h')
-rw-r--r--src/plugins/plugin-script-api.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/plugin-script-api.h b/src/plugins/plugin-script-api.h
index e278f8217..fc48d995d 100644
--- a/src/plugins/plugin-script-api.h
+++ b/src/plugins/plugin-script-api.h
@@ -330,10 +330,10 @@ extern struct t_gui_bar_item *plugin_script_api_bar_item_new (struct t_weechat_p
extern void plugin_script_api_bar_item_remove (struct t_weechat_plugin *weechat_plugin,
struct t_plugin_script *script,
struct t_gui_bar_item *item);
-extern void plugin_script_api_command (struct t_weechat_plugin *weechat_plugin,
- struct t_plugin_script *script,
- struct t_gui_buffer *buffer,
- const char *command);
+extern int plugin_script_api_command (struct t_weechat_plugin *weechat_plugin,
+ struct t_plugin_script *script,
+ struct t_gui_buffer *buffer,
+ const char *command);
extern const char *plugin_script_api_config_get_plugin (struct t_weechat_plugin *weechat_plugin,
struct t_plugin_script *script,
const char *option);