diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-02-18 18:26:06 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-02-18 18:52:52 +0100 |
commit | 61a8e4e27e37b08b7d948390531dc5c2d59330e5 (patch) | |
tree | 0cb0bf8f2f2987e5da8ebc076c56bb5960784cbf /src/plugins | |
parent | 780be1e1b7852f38028e0ffe2db54ac8c1506a14 (diff) | |
download | weechat-61a8e4e27e37b08b7d948390531dc5c2d59330e5.zip |
relay/api: add key "visible" with boolean value in nick and group objects
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/relay/api/relay-api-msg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/relay/api/relay-api-msg.c b/src/plugins/relay/api/relay-api-msg.c index 3b9130cb8..cdb20439a 100644 --- a/src/plugins/relay/api/relay-api-msg.c +++ b/src/plugins/relay/api/relay-api-msg.c @@ -533,6 +533,7 @@ relay_api_msg_nick_to_json (struct t_gui_nick *nick) MSG_ADD_HDATA_STR("prefix_color", "prefix_color"); MSG_ADD_HDATA_STR("name", "name"); MSG_ADD_HDATA_STR("color", "color"); + MSG_ADD_HDATA_VAR(Bool, "visible", integer, "visible"); return json; } @@ -563,6 +564,7 @@ relay_api_msg_nick_group_to_json (struct t_gui_nick_group *nick_group) MSG_ADD_HDATA_STR("name", "name"); MSG_ADD_HDATA_STR("color", "color"); + MSG_ADD_HDATA_VAR(Bool, "visible", integer, "visible"); json_groups = cJSON_CreateArray (); if (json_groups) |