mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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
@ -91,11 +91,16 @@ static void display_sorted_nicks(CHANNEL_REC *channel, GSList *nicklist, gint it
|
|||||||
|
|
||||||
if (--skip == 0)
|
if (--skip == 0)
|
||||||
{
|
{
|
||||||
|
char *ret, nickmode[2] = { 0, 0 };
|
||||||
skip = lines;
|
skip = lines;
|
||||||
memset(linebuf, ' ', max);
|
memset(linebuf, ' ', max);
|
||||||
linebuf[0] = rec->op ? '@' : rec->voice ? '+' : ' ';
|
nickmode[0] = rec->op ? '@' : rec->voice ? '+' : ' ';
|
||||||
memcpy(linebuf+1, rec->nick, strlen(rec->nick));
|
memcpy(linebuf, rec->nick, strlen(rec->nick));
|
||||||
g_string_sprintfa(str, "%%K[%%n%%_%c%%_%s%%K] ", linebuf[0], linebuf+1);
|
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++;
|
cols++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@ FORMAT_REC fecommon_irc_formats[] = {
|
|||||||
{ "inviting", "Inviting $0 to %_$1", 2, { 0, 0 } },
|
{ "inviting", "Inviting $0 to %_$1", 2, { 0, 0 } },
|
||||||
{ "not_invited", "You have not been invited to a channel!", 0 },
|
{ "not_invited", "You have not been invited to a channel!", 0 },
|
||||||
{ "names", "%K[%g%_Users%_%K(%g$0%K)]%n $1", 2, { 0, 0 } },
|
{ "names", "%K[%g%_Users%_%K(%g$0%K)]%n $1", 2, { 0, 0 } },
|
||||||
|
{ "names_nick", "%K[%n%_$0%_$1%K] ", 2, { 0, 0 } },
|
||||||
{ "endofnames", "%g%_$0%_%K:%n Total of %_$1%_ nicks %K[%n%_$2%_ ops, %_$3%_ voices, %_$4%_ normal%K]", 5, { 0, 1, 1, 1, 1 } },
|
{ "endofnames", "%g%_$0%_%K:%n Total of %_$1%_ nicks %K[%n%_$2%_ ops, %_$3%_ voices, %_$4%_ normal%K]", 5, { 0, 1, 1, 1, 1 } },
|
||||||
{ "channel_created", "Channel %_$0%_ created $1", 2, { 0, 0 } },
|
{ "channel_created", "Channel %_$0%_ created $1", 2, { 0, 0 } },
|
||||||
{ "topic", "Topic for %c$0%K:%n $1", 2, { 0, 0 } },
|
{ "topic", "Topic for %c$0%K:%n $1", 2, { 0, 0 } },
|
||||||
|
@ -52,6 +52,7 @@ enum {
|
|||||||
IRCTXT_INVITING,
|
IRCTXT_INVITING,
|
||||||
IRCTXT_NOT_INVITED,
|
IRCTXT_NOT_INVITED,
|
||||||
IRCTXT_NAMES,
|
IRCTXT_NAMES,
|
||||||
|
IRCTXT_NAMES_NICK,
|
||||||
IRCTXT_ENDOFNAMES,
|
IRCTXT_ENDOFNAMES,
|
||||||
IRCTXT_CHANNEL_CREATED,
|
IRCTXT_CHANNEL_CREATED,
|
||||||
IRCTXT_TOPIC,
|
IRCTXT_TOPIC,
|
||||||
|
Loading…
Reference in New Issue
Block a user