summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-01-06 19:14:45 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-01-06 19:26:39 +0100
commitd8704d5c7405fec7089b391872954b27cdd9094d (patch)
treed20545fe892d564dc7537a8bb0ac3393871c9a10 /src/core
parent6efa574483b0498cfb92cddf7365e6207558ed3a (diff)
downloadweechat-d8704d5c7405fec7089b391872954b27cdd9094d.zip
core: add variable "opening" in buffer, do not send buffer signals when the buffer is opening
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-command.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 63f5ba68a..87d219249 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -2537,7 +2537,8 @@ COMMAND_CALLBACK(filter)
{
buffer->filter = 1;
gui_filter_buffer (buffer, NULL);
- (void) hook_signal_send (
+ (void) gui_buffer_send_signal (
+ buffer,
"buffer_filters_enabled",
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
}
@@ -2589,7 +2590,8 @@ COMMAND_CALLBACK(filter)
{
buffer->filter = 0;
gui_filter_buffer (buffer, NULL);
- (void) hook_signal_send (
+ (void) gui_buffer_send_signal (
+ buffer,
"buffer_filters_disabled",
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
}
@@ -2639,7 +2641,8 @@ COMMAND_CALLBACK(filter)
/* toggle filters in buffer */
buffer->filter ^= 1;
gui_filter_buffer (buffer, NULL);
- (void) hook_signal_send (
+ (void) gui_buffer_send_signal (
+ buffer,
(buffer->filter) ?
"buffer_filters_enabled" : "buffer_filters_disabled",
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
@@ -7097,8 +7100,7 @@ COMMAND_CALLBACK(upgrade)
&& (string_strcmp (argv[index_args], "-save") == 0))
{
/* send "upgrade" signal to plugins */
- (void) hook_signal_send ("upgrade", WEECHAT_HOOK_SIGNAL_STRING,
- "save");
+ (void) hook_signal_send ("upgrade", WEECHAT_HOOK_SIGNAL_STRING, "save");
/* save WeeChat session */
if (!upgrade_weechat_save ())
{