summaryrefslogtreecommitdiff
path: root/src/core/hook
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-03-07 21:37:25 +0100
committerSébastien Helleu <flashcode@flashtux.org>2022-03-13 10:35:29 +0100
commitfbbed9fbf7262ad497a012e40f9e6e3d39dd6030 (patch)
tree14b312001a94db301a6dd14eb331adbc09a1b9aa /src/core/hook
parent310b4dd2a03e87d2875c2d231cd607b118a14137 (diff)
downloadweechat-fbbed9fbf7262ad497a012e40f9e6e3d39dd6030.zip
core: add function gui_buffer_new_props (issue #1759)
This function allows to create a buffer and set properties via a hashtable, before the signal "buffer_opened" is sent.
Diffstat (limited to 'src/core/hook')
-rw-r--r--src/core/hook/wee-hook-line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hook/wee-hook-line.c b/src/core/hook/wee-hook-line.c
index f4b605964..6c1d3f03c 100644
--- a/src/core/hook/wee-hook-line.c
+++ b/src/core/hook/wee-hook-line.c
@@ -71,7 +71,7 @@ hook_line (struct t_weechat_plugin *plugin, const char *buffer_type,
new_hook->hook_data = new_hook_line;
new_hook_line->callback = callback;
if (!buffer_type || !buffer_type[0])
- new_hook_line->buffer_type = GUI_BUFFER_TYPE_FORMATTED;
+ new_hook_line->buffer_type = GUI_BUFFER_TYPE_DEFAULT;
else if (strcmp (buffer_type, "*") == 0)
new_hook_line->buffer_type = -1;
else