mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 16:50:19 +00:00
Fix logging hostname of queries
- Move query topic setting from frontend (where its too late) - Respect chanopts for logging hostname - Open query logfile *after* chanopts loaded
This commit is contained in:
@@ -3508,7 +3508,6 @@ mg_changui_new (session *sess, restore_gui *res, int tab, int focus)
|
||||
{
|
||||
int first_run = FALSE;
|
||||
session_gui *gui;
|
||||
struct User *user = NULL;
|
||||
|
||||
if (res == NULL)
|
||||
{
|
||||
@@ -3522,9 +3521,6 @@ mg_changui_new (session *sess, restore_gui *res, int tab, int focus)
|
||||
sess->server->front_session = sess;
|
||||
}
|
||||
|
||||
if (!is_channel (sess->server, sess->channel))
|
||||
user = userlist_find_global (sess->server, sess->channel);
|
||||
|
||||
if (!tab)
|
||||
{
|
||||
gui = g_new0 (session_gui, 1);
|
||||
@@ -3532,8 +3528,6 @@ mg_changui_new (session *sess, restore_gui *res, int tab, int focus)
|
||||
sess->gui = gui;
|
||||
mg_create_topwindow (sess);
|
||||
fe_set_title (sess);
|
||||
if (user && user->hostname)
|
||||
set_topic (sess, user->hostname, user->hostname);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3553,9 +3547,6 @@ mg_changui_new (session *sess, restore_gui *res, int tab, int focus)
|
||||
gui->is_tab = TRUE;
|
||||
}
|
||||
|
||||
if (user && user->hostname)
|
||||
set_topic (sess, user->hostname, user->hostname);
|
||||
|
||||
mg_add_chan (sess);
|
||||
|
||||
if (first_run || (prefs.hex_gui_tab_newtofront == FOCUS_NEW_ONLY_ASKED && focus)
|
||||
|
||||
Reference in New Issue
Block a user