about summary refs log tree commit diff stats
path: root/src/ui/core.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-10-02 23:52:17 +0100
committerJames Booth <boothj5@gmail.com>2014-10-02 23:52:17 +0100
commit7090f04a92cddb12af5d9c676c222abe5fd48f9d (patch)
tree4409088732da6d00a168111ddfb2858835c53855 /src/ui/core.c
parent25b04537e1e4b53b54c602cc7c5081290f84c49a (diff)
downloadprofani-tty-7090f04a92cddb12af5d9c676c222abe5fd48f9d.tar.gz
Formatted /room info output
Diffstat (limited to 'src/ui/core.c')
-rw-r--r--src/ui/core.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index c07118af..b6168c58 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -1400,11 +1400,11 @@ _ui_show_room_disco_info(const char * const room, GSList *identities, GSList *fe
         if (((identities != NULL) && (g_slist_length(identities) > 0)) ||
             ((features != NULL) && (g_slist_length(features) > 0))) {
             if (identities != NULL) {
-                win_save_print(window, '!', NULL, 0, 0, "", "  Identities:");
+                win_save_print(window, '!', NULL, 0, 0, "", "Identities:");
             }
             while (identities != NULL) {
                 DiscoIdentity *identity = identities->data;  // anme trpe, cat
-                GString *identity_str = g_string_new("    ");
+                GString *identity_str = g_string_new("  ");
                 if (identity->name != NULL) {
                     identity_str = g_string_append(identity_str, identity->name);
                     identity_str = g_string_append(identity_str, " ");
@@ -1422,12 +1422,13 @@ _ui_show_room_disco_info(const char * const room, GSList *identities, GSList *fe
             }
 
             if (features != NULL) {
-                win_save_print(window, '!', NULL, 0, 0, "", "  Features:");
+                win_save_print(window, '!', NULL, 0, 0, "", "Features:");
             }
             while (features != NULL) {
-                win_save_vprint(window, '!', NULL, 0, 0, "", "    %s", features->data);
+                win_save_vprint(window, '!', NULL, 0, 0, "", "  %s", features->data);
                 features = g_slist_next(features);
             }
+            win_save_print(window, '-', NULL, 0, 0, "", "");
         }
     }
 }
@@ -1943,8 +1944,8 @@ _ui_show_room_info(ProfWin *window, const char * const room)
     char *affiliation = muc_affiliation_str(room);
 
     win_save_vprint(window, '!', NULL, 0, 0, "", "Room: %s", room);
-    win_save_vprint(window, '!', NULL, 0, 0, "", "  Affiliation: %s", affiliation);
-    win_save_vprint(window, '!', NULL, 0, 0, "", "  Role: %s", role);
+    win_save_vprint(window, '!', NULL, 0, 0, "", "Affiliation: %s", affiliation);
+    win_save_vprint(window, '!', NULL, 0, 0, "", "Role: %s", role);
     win_save_print(window, '-', NULL, 0, 0, "", "");
 }