diff options
author | TingPing <tingping@tingping.se> | 2015-02-01 01:45:34 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2015-02-01 01:47:50 -0500 |
commit | 60fa7efbc861cc6b6d6ff0f619a16ed79025cb12 (patch) | |
tree | b2c7a195edae991b12681a38f1fe13f75af305e3 /src/fe-gtk | |
parent | dc9a7d3a59ffaa47523dbbc4daadfda9c891ecb0 (diff) |
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
Diffstat (limited to 'src/fe-gtk')
-rw-r--r-- | src/fe-gtk/maingui.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c index a5472b70..ee1854c0 100644 --- a/src/fe-gtk/maingui.c +++ b/src/fe-gtk/maingui.c @@ -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) |