mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Added names_nick format.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@564 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
01a4f9fe04
commit
3c594edf07
3 changed files with 10 additions and 3 deletions
|
|
@ -91,11 +91,16 @@ static void display_sorted_nicks(CHANNEL_REC *channel, GSList *nicklist, gint it
|
|||
|
||||
if (--skip == 0)
|
||||
{
|
||||
char *ret, nickmode[2] = { 0, 0 };
|
||||
skip = lines;
|
||||
memset(linebuf, ' ', max);
|
||||
linebuf[0] = rec->op ? '@' : rec->voice ? '+' : ' ';
|
||||
memcpy(linebuf+1, rec->nick, strlen(rec->nick));
|
||||
g_string_sprintfa(str, "%%K[%%n%%_%c%%_%s%%K] ", linebuf[0], linebuf+1);
|
||||
nickmode[0] = rec->op ? '@' : rec->voice ? '+' : ' ';
|
||||
memcpy(linebuf, rec->nick, strlen(rec->nick));
|
||||
ret = output_format_get_text(MODULE_NAME, NULL,
|
||||
channel->server, channel->name,
|
||||
IRCTXT_NAMES_NICK, nickmode, linebuf);
|
||||
g_string_append(str, ret);
|
||||
g_free(ret);
|
||||
cols++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue