about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/ui/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index cca6d902..8afb23f4 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -307,7 +307,7 @@ win_get_title(ProfWin* window)
         gboolean show_titlebar_name = prefs_get_boolean(PREF_TITLEBAR_MUC_TITLE_NAME);
         GString* title = g_string_new("");
 
-        if (show_titlebar_name) {
+        if (show_titlebar_name && mucwin->room_name) {
             g_string_append(title, mucwin->room_name);
             g_string_append(title, " ");
         }