summaryrefslogtreecommitdiff
path: root/src/core/hook
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-08-14 14:51:18 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-08-14 14:51:18 +0200
commit3bdab1c5381cc190b7c5ebc396f2f5a6f90fdb87 (patch)
tree74b23b4b57331e5e68115c323bd6e244857cf72c /src/core/hook
parent49c3e6210666f271d1c87115c091b54e4f35ae53 (diff)
downloadweechat-3bdab1c5381cc190b7c5ebc396f2f5a6f90fdb87.zip
core: fix type of variables "buffer_name" and "buffer_type" sent to the hook_line callback
Diffstat (limited to 'src/core/hook')
-rw-r--r--src/core/hook/wee-hook-line.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hook/wee-hook-line.c b/src/core/hook/wee-hook-line.c
index f08813cac..d65fb5e6d 100644
--- a/src/core/hook/wee-hook-line.c
+++ b/src/core/hook/wee-hook-line.c
@@ -131,9 +131,9 @@ hook_line_exec (struct t_gui_line *line)
if (!hashtable)
break;
}
- HASHTABLE_SET_PTR("buffer", line->data->buffer);
- HASHTABLE_SET_PTR("buffer_name", line->data->buffer->full_name);
- HASHTABLE_SET_PTR("buffer_type",
+ HASHTABLE_SET_POINTER("buffer", line->data->buffer);
+ HASHTABLE_SET_STR("buffer_name", line->data->buffer->full_name);
+ HASHTABLE_SET_STR("buffer_type",
gui_buffer_type_string[line->data->buffer->type]);
HASHTABLE_SET_INT("y", line->data->y);
HASHTABLE_SET_TIME("date", line->data->date);