mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 23:06:38 +02:00
core: add script name in output of /debug hooks <plugin>
This commit is contained in:
@@ -13,6 +13,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
- **breaking:** core: fix buffer overflow in function utf8_next_char and return NULL for empty string
|
||||
- **breaking:** core: fix integer overflow and return "unsigned long" in function util_version_number
|
||||
- core: write configuration files on disk only if there are changes ([#2250](https://github.com/weechat/weechat/issues/2250))
|
||||
- core: add script name in output of `/debug hooks <plugin>`
|
||||
|
||||
### Added
|
||||
|
||||
|
||||
@@ -611,6 +611,12 @@ debug_hooks_plugin_types (const char *plugin_mask, const char **hook_types)
|
||||
(ptr_hook->plugin) ?
|
||||
ptr_hook->plugin->name : PLUGIN_CORE,
|
||||
-1);
|
||||
if (ptr_hook->subplugin)
|
||||
{
|
||||
string_dyn_concat (result_type, "(", -1);
|
||||
string_dyn_concat (result_type, ptr_hook->subplugin, -1);
|
||||
string_dyn_concat (result_type, ")", -1);
|
||||
}
|
||||
string_dyn_concat (result_type, ": ", -1);
|
||||
string_dyn_concat (result_type, desc, -1);
|
||||
string_dyn_concat (result_type, "\n", -1);
|
||||
|
||||
Reference in New Issue
Block a user