1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

other fixes

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3213 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2004-01-22 13:14:37 +00:00 committed by cras
parent 566485c3ab
commit a482865446
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ unsigned int send_massjoin:1; /* Waiting to be sent in massjoin signal */
unsigned int op:1; unsigned int op:1;
unsigned int halfop:1; unsigned int halfop:1;
unsigned int voice:1; unsigned int voice:1;
unsigned int other:7; char other;
/*GHashTable *module_data;*/ /*GHashTable *module_data;*/

View File

@ -94,7 +94,7 @@ static void sig_session_restore_server(IRC_SERVER_REC *server,
} }
node = config_node_section(node, "isupport", -1); 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) if(tmp != NULL)
server->isupport_sent = TRUE; 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); halfop = config_node_get_bool(node, "halfop", FALSE);
nickrec = irc_nicklist_insert(channel, nick, op, halfop, voice, FALSE); nickrec = irc_nicklist_insert(channel, nick, op, halfop, voice, FALSE);
other = config_node_get_str(node, "other", 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) static void session_restore_channel(IRC_CHANNEL_REC *channel)