diff options
author | Timo Sirainen <cras@irssi.org> | 2001-12-09 17:13:48 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-12-09 17:13:48 +0000 |
commit | 15e815e8d3ff84683c2429f59738f6625d3e4f9b (patch) | |
tree | d09ad892780db823466c9a36b102fe2de3882154 /src/irc/core/irc-session.c | |
parent | a8419ed5b93af2c063ca90a4f34ffe36d88458a2 (diff) | |
download | irssi-15e815e8d3ff84683c2429f59738f6625d3e4f9b.zip |
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
Diffstat (limited to 'src/irc/core/irc-session.c')
-rw-r--r-- | src/irc/core/irc-session.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/irc/core/irc-session.c b/src/irc/core/irc-session.c index 01fa6fba..c72a6165 100644 --- a/src/irc/core/irc-session.c +++ b/src/irc/core/irc-session.c @@ -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) |