mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Allow storing multiple "other" prefixes such as +q and +a.
Original patch by JasonX, somewhat changed by exg and me. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4922 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
aefa7b47c1
commit
89cd47bf3a
15 changed files with 110 additions and 88 deletions
|
|
@ -114,7 +114,6 @@ static void sig_session_restore_nick(IRC_CHANNEL_REC *channel,
|
|||
CONFIG_NODE *node)
|
||||
{
|
||||
const char *nick;
|
||||
char *other;
|
||||
int op, halfop, voice;
|
||||
NICK_REC *nickrec;
|
||||
|
||||
|
|
@ -129,8 +128,9 @@ static void sig_session_restore_nick(IRC_CHANNEL_REC *channel,
|
|||
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);
|
||||
other = config_node_get_str(node, "other", NULL);
|
||||
nickrec->other = other == NULL ? '\0' : other[0];
|
||||
strocpy(nickrec->prefixes,
|
||||
config_node_get_str(node, "prefixes", ""),
|
||||
sizeof(nickrec->prefixes));
|
||||
}
|
||||
|
||||
static void session_restore_channel(IRC_CHANNEL_REC *channel)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue