diff options
-rw-r--r-- | doc/en/autogen/plugin_api/infos.txt | 2 | ||||
-rw-r--r-- | doc/fr/autogen/plugin_api/infos.txt | 2 | ||||
-rw-r--r-- | doc/it/autogen/plugin_api/infos.txt | 2 | ||||
-rw-r--r-- | src/plugins/irc/irc-info.c | 6 |
4 files changed, 12 insertions, 0 deletions
diff --git a/doc/en/autogen/plugin_api/infos.txt b/doc/en/autogen/plugin_api/infos.txt index ade4a3521..92d107eae 100644 --- a/doc/en/autogen/plugin_api/infos.txt +++ b/doc/en/autogen/plugin_api/infos.txt @@ -9,6 +9,8 @@ | irc | irc_nick | get current nick on a server +| irc | irc_nick_color | get nick color + | irc | irc_nick_from_host | get nick from IRC host | weechat | charset_internal | WeeChat internal charset diff --git a/doc/fr/autogen/plugin_api/infos.txt b/doc/fr/autogen/plugin_api/infos.txt index bfbe56557..f547d9080 100644 --- a/doc/fr/autogen/plugin_api/infos.txt +++ b/doc/fr/autogen/plugin_api/infos.txt @@ -9,6 +9,8 @@ | irc | irc_nick | retourne le pseudo utilisé actuellement sur un serveur +| irc | irc_nick_color | retourne la couleur du pseudo + | irc | irc_nick_from_host | retourne le pseudo à partir d'un host IRC | weechat | charset_internal | charset interne à WeeChat diff --git a/doc/it/autogen/plugin_api/infos.txt b/doc/it/autogen/plugin_api/infos.txt index 5f5723cdb..51b6a7925 100644 --- a/doc/it/autogen/plugin_api/infos.txt +++ b/doc/it/autogen/plugin_api/infos.txt @@ -9,6 +9,8 @@ | irc | irc_nick | ottiene nick corrente su un server +| irc | irc_nick_color | get nick color + | irc | irc_nick_from_host | ottiene nick dall'host IRC | weechat | charset_internal | set caratteri interno di WeeChat diff --git a/src/plugins/irc/irc-info.c b/src/plugins/irc/irc-info.c index 365cf31fc..a561e5ae2 100644 --- a/src/plugins/irc/irc-info.c +++ b/src/plugins/irc/irc-info.c @@ -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); |