mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
Add IRC info "irc_nick_color" to get color of a nick
This commit is contained in:
@@ -90,6 +90,10 @@ irc_info_get_info_cb (void *data, const char *info_name,
|
||||
{
|
||||
return irc_protocol_get_nick_from_host (arguments);
|
||||
}
|
||||
else if (weechat_strcasecmp (info_name, "irc_nick_color") == 0)
|
||||
{
|
||||
return irc_nick_find_color (arguments);
|
||||
}
|
||||
else if (weechat_strcasecmp (info_name, "irc_buffer") == 0)
|
||||
{
|
||||
if (arguments && arguments[0])
|
||||
@@ -396,6 +400,8 @@ irc_info_init ()
|
||||
&irc_info_get_info_cb, NULL);
|
||||
weechat_hook_info ("irc_nick_from_host", N_("get nick from IRC host"),
|
||||
&irc_info_get_info_cb, NULL);
|
||||
weechat_hook_info ("irc_nick_color", N_("get nick color"),
|
||||
&irc_info_get_info_cb, NULL);
|
||||
weechat_hook_info ("irc_buffer", N_("get buffer pointer for an IRC server/channel"),
|
||||
&irc_info_get_info_cb, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user