mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-14 01:30:19 +00:00
Fix chanopts not saving if /quit before exit
This is the C fix, unfortunately a proper fix, e.g. removing the dependency on session_name all together is a much vaster refactor outside the scope of this bugfix. Closes #1111
This commit is contained in:
@@ -480,7 +480,10 @@ session_new (server *serv, char *from, int type, int focus)
|
||||
sess->lastact_idx = LACT_NONE;
|
||||
|
||||
if (from != NULL)
|
||||
safe_strcpy (sess->channel, from, CHANLEN);
|
||||
{
|
||||
safe_strcpy(sess->channel, from, CHANLEN);
|
||||
safe_strcpy(sess->session_name, from, CHANLEN);
|
||||
}
|
||||
|
||||
sess_list = g_slist_prepend (sess_list, sess);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user