summaryrefslogtreecommitdiff
path: root/src/plugins/buflist
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-02-26 07:33:12 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-03-12 20:37:11 +0100
commit9e0dd1815278e189b6fd84046fc78e883cf85704 (patch)
treea7d8c6ed636ca02227cd140889d2bcc45aa2676e /src/plugins/buflist
parentc85b57b8b399b980c5d6725fc33bef83d9727bfb (diff)
downloadweechat-9e0dd1815278e189b6fd84046fc78e883cf85704.zip
api: add function "hdata_longlong" (issue #2081)
Diffstat (limited to 'src/plugins/buflist')
-rw-r--r--src/plugins/buflist/buflist-mouse.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/buflist/buflist-mouse.c b/src/plugins/buflist/buflist-mouse.c
index 8ed15eb6b..5f349d29d 100644
--- a/src/plugins/buflist/buflist-mouse.c
+++ b/src/plugins/buflist/buflist-mouse.c
@@ -125,6 +125,14 @@ end:
ptr_buffer, list_keys[i]) : -1);
weechat_hashtable_set (info, list_keys[i], str_value);
break;
+ case WEECHAT_HDATA_LONGLONG:
+ snprintf (str_value, sizeof (str_value),
+ "%lld",
+ (ptr_buffer) ?
+ weechat_hdata_longlong (buflist_hdata_buffer,
+ ptr_buffer, list_keys[i]) : 0);
+ weechat_hashtable_set (info, list_keys[i], str_value);
+ break;
case WEECHAT_HDATA_STRING:
case WEECHAT_HDATA_SHARED_STRING:
ptr_value = weechat_hdata_string (buflist_hdata_buffer,