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

irc: display "owner" for +q and "admin" for +a in output of /names (closes #2020, issue #97)

This commit is contained in:
Sébastien Helleu
2023-09-22 23:21:22 +02:00
parent 7f0efa3a8f
commit f72fb3be4b
17 changed files with 198 additions and 19 deletions
+10
View File
@@ -6672,6 +6672,16 @@ irc_protocol_get_string_channel_nicks_count (struct t_irc_server *server,
/* TRANSLATORS: number of "regular" nicks on a channel (ie not op/halfop/voiced), for example: "56 regular" */
NG_("regular", "regular", nicks_by_mode[i]));
}
else if (ptr_prefix_modes[i] == 'q')
{
snprintf (str_mode_name, sizeof (str_mode_name),
"%s", NG_("owner", "owners", nicks_by_mode[i]));
}
else if (ptr_prefix_modes[i] == 'a')
{
snprintf (str_mode_name, sizeof (str_mode_name),
"%s", NG_("admin", "admins", nicks_by_mode[i]));
}
else if (ptr_prefix_modes[i] == 'o')
{
snprintf (str_mode_name, sizeof (str_mode_name),