mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-11-12 18:35:39 +00:00
Fix autojoins for sessions
This commit is contained in:
1 parent
81990ce53b
commit
8cf025f18d
4 files changed
+57
-89
No files matched your search
@@ -185,13 +185,13 @@ irc_join_list (server *serv, GSList *favorites)
|
||||
|
||||
g_string_append (chanlist, fav->name);
|
||||
|
||||
if (fav->key)
|
||||
if (fav->key && strlen (fav->key)) /* strlen() is required since key can be '' for session->channelkey */
|
||||
{
|
||||
g_string_append (keylist, fav->key);
|
||||
}
|
||||
else
|
||||
{
|
||||
g_string_append_c (keylist, 'x'); /* 'x' filler for keyless channels */
|
||||
g_string_append_c (keylist, 'x'); /* 'x' filler for keyless channels so that our JOIN command is always well-formatted */
|
||||
}
|
||||
|
||||
first_item = 0;
|
||||
|
||||
Reference in new issue
Block a user