mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
Add prefixes to irc_nicklist_insert() so that nickrec.prefixes is accurate in the
"nicklist new" signal. Fixes the nicklist sorting on xirssi. Patch by nenolod. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5184 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ab33ac15af
commit
350b346c84
5 changed files with 13 additions and 11 deletions
|
|
@ -129,7 +129,6 @@ static void sig_session_restore_nick(IRC_CHANNEL_REC *channel,
|
|||
op = config_node_get_bool(node, "op", FALSE);
|
||||
voice = config_node_get_bool(node, "voice", FALSE);
|
||||
halfop = config_node_get_bool(node, "halfop", FALSE);
|
||||
nickrec = irc_nicklist_insert(channel, nick, op, halfop, voice, FALSE);
|
||||
prefixes = config_node_get_str(node, "prefixes", NULL);
|
||||
if (prefixes == NULL || *prefixes == '\0') {
|
||||
/* upgrading from old irssi or from an in-between
|
||||
|
|
@ -146,9 +145,7 @@ static void sig_session_restore_nick(IRC_CHANNEL_REC *channel,
|
|||
newprefixes[i] = '\0';
|
||||
prefixes = newprefixes;
|
||||
}
|
||||
strocpy(nickrec->prefixes,
|
||||
prefixes,
|
||||
sizeof(nickrec->prefixes));
|
||||
nickrec = irc_nicklist_insert(channel, nick, op, halfop, voice, FALSE, prefixes);
|
||||
}
|
||||
|
||||
static void session_restore_channel(IRC_CHANNEL_REC *channel)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue