1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 02:03:13 +02:00

core: add functions to get short description of hooks

This commit is contained in:
Sébastien Helleu
2022-04-24 10:00:09 +02:00
parent 95cf2aa956
commit d16640130e
38 changed files with 342 additions and 1 deletions
+12
View File
@@ -38,6 +38,18 @@
#include "../../plugins/plugin.h"
/*
* Returns description of hook.
*
* Note: result must be freed after use.
*/
char *
hook_command_get_description (struct t_hook *hook)
{
return strdup (HOOK_COMMAND(hook, command));
}
/*
* Searches for a command hook in list.
*