mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
Added new formats for ops/halfops/voices in /NAMES list.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2067 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
18bc86bfe7
commit
edf0e479b5
4 changed files with 15 additions and 2 deletions
|
|
@ -332,7 +332,7 @@ static void display_sorted_nicks(CHANNEL_REC *channel, GSList *nicklist)
|
|||
char *format, *stripped;
|
||||
char *linebuf, nickmode[2] = { 0, 0 };
|
||||
int *columns, cols, rows, last_col_rows, col, row, max_width;
|
||||
int item_extra, linebuf_size;
|
||||
int item_extra, linebuf_size, formatnum;
|
||||
|
||||
window = window_find_closest(channel->server, channel->name,
|
||||
MSGLEVEL_CLIENTCRAP);
|
||||
|
|
@ -390,9 +390,13 @@ static void display_sorted_nicks(CHANNEL_REC *channel, GSList *nicklist)
|
|||
linebuf[columns[col]-item_extra] = '\0';
|
||||
memcpy(linebuf, rec->nick, strlen(rec->nick));
|
||||
|
||||
formatnum = rec->op ? TXT_NAMES_NICK_OP :
|
||||
rec->halfop ? TXT_NAMES_NICK_HALFOP :
|
||||
rec->voice ? TXT_NAMES_NICK_VOICE :
|
||||
TXT_NAMES_NICK;
|
||||
format = format_get_text(MODULE_NAME, NULL,
|
||||
channel->server, channel->name,
|
||||
TXT_NAMES_NICK, nickmode, linebuf);
|
||||
formatnum, nickmode, linebuf);
|
||||
g_string_append(str, format);
|
||||
g_free(format);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue