summaryrefslogtreecommitdiff
path: root/src/irc/core/irc-session.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2004-01-22 13:14:37 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2004-01-22 13:14:37 +0000
commita4828654467b8efb579654fedea8159ba9384184 (patch)
tree0ff8e16f85154c493855145d5663ccf85511aaf4 /src/irc/core/irc-session.c
parent566485c3ab7ebd6494e471c7e1a742fee5acfec9 (diff)
downloadirssi-a4828654467b8efb579654fedea8159ba9384184.zip
other fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3213 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc-session.c')
-rw-r--r--src/irc/core/irc-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/core/irc-session.c b/src/irc/core/irc-session.c
index 797e084e..fda9f9c3 100644
--- a/src/irc/core/irc-session.c
+++ b/src/irc/core/irc-session.c
@@ -94,7 +94,7 @@ static void sig_session_restore_server(IRC_SERVER_REC *server,
}
node = config_node_section(node, "isupport", -1);
- tmp = config_node_first(node->value);
+ tmp = node == NULL ? NULL : config_node_first(node->value);
if(tmp != NULL)
server->isupport_sent = TRUE;
@@ -129,7 +129,7 @@ static void sig_session_restore_nick(IRC_CHANNEL_REC *channel,
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", FALSE);
- nickrec->other = other[0];
+ nickrec->other = other == NULL ? '\0' : other[0];
}
static void session_restore_channel(IRC_CHANNEL_REC *channel)