mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 00:03:12 +02:00
core: add function "hook_set" in plugin API, add "subplugin" in hooks (set by script plugins), display subplugin in /help on commands (task #12049)
This commit is contained in:
committed by
Sebastien Helleu
parent
92aa9bff45
commit
c03fcd5e12
@@ -1926,10 +1926,18 @@ COMMAND_CALLBACK(help)
|
||||
else
|
||||
{
|
||||
gui_chat_printf (NULL,
|
||||
"%s[%s%s%s] %s/%s %s%s",
|
||||
"%s[%s%s%s%s%s%s%s] %s/%s %s%s",
|
||||
GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS),
|
||||
GUI_COLOR(GUI_COLOR_CHAT),
|
||||
plugin_get_name (ptr_hook->plugin),
|
||||
(ptr_hook->subplugin && ptr_hook->subplugin[0]) ?
|
||||
GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS) : "",
|
||||
(ptr_hook->subplugin && ptr_hook->subplugin[0]) ?
|
||||
"/" : "",
|
||||
(ptr_hook->subplugin && ptr_hook->subplugin[0]) ?
|
||||
GUI_COLOR(GUI_COLOR_CHAT) : "",
|
||||
(ptr_hook->subplugin && ptr_hook->subplugin[0]) ?
|
||||
ptr_hook->subplugin : "",
|
||||
GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS),
|
||||
GUI_COLOR(GUI_COLOR_CHAT_BUFFER),
|
||||
HOOK_COMMAND(ptr_hook, command),
|
||||
|
||||
Reference in New Issue
Block a user