Make sure the created favchannel instances have a NULL key when the session's key is empty

This commit is contained in:
Berke Viktor
2013-05-16 00:04:58 +02:00
parent 2ff8e74061
commit fd1b276aab
2 changed files with 10 additions and 2 deletions

View File

@@ -194,7 +194,7 @@ irc_join_list (server *serv, GSList *favorites)
g_string_append (chanlist, fav->name);
if (fav->key && strlen (fav->key)) /* strlen() is required since key can be '' for session->channelkey */
if (fav->key) /* strlen() is required since key can be '' for session->channelkey */
{
g_string_append (keylist, fav->key);
send_keys = 1;