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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user