diff options
author | Jilles Tjoelker <jilles@irssi.org> | 2008-11-28 00:16:51 +0000 |
---|---|---|
committer | jilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-11-28 00:16:51 +0000 |
commit | 89cd47bf3a937c3077acdc95d98cc4b389e30608 (patch) | |
tree | e96f73aa452cc2fbec41f45f973cfaf42acacb3a /src/irc/core/irc-session.c | |
parent | aefa7b47c14f2bd8801b233907a84de4f6eee3b8 (diff) | |
download | irssi-89cd47bf3a937c3077acdc95d98cc4b389e30608.zip |
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
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 ac2b0a07..5cd5cc43 100644 --- a/src/irc/core/irc-session.c +++ b/src/irc/core/irc-session.c @@ -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) |