mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
Better support for halfops, patch by yathen@web.de
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2228 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a8419ed5b9
commit
15e815e8d3
8 changed files with 57 additions and 24 deletions
|
|
@ -77,7 +77,7 @@ static void sig_session_restore_nick(IRC_CHANNEL_REC *channel,
|
|||
CONFIG_NODE *node)
|
||||
{
|
||||
const char *nick;
|
||||
int op, voice;
|
||||
int op, halfop, voice;
|
||||
NICK_REC *nickrec;
|
||||
|
||||
if (!IS_IRC_CHANNEL(channel))
|
||||
|
|
@ -89,8 +89,8 @@ 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);
|
||||
nickrec = irc_nicklist_insert(channel, nick, op, voice, FALSE);
|
||||
nickrec->halfop = config_node_get_bool(node, "halfop", FALSE);
|
||||
halfop = config_node_get_bool(node, "halfop", FALSE);
|
||||
nickrec = irc_nicklist_insert(channel, nick, op, halfop, voice, FALSE);
|
||||
}
|
||||
|
||||
static void session_restore_channel(IRC_CHANNEL_REC *channel)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue