about summary refs log tree commit diff stats
path: root/src/ui/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/core.c')
-rw-r--r--src/ui/core.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index f80c6ad2..b6acc925 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -230,17 +230,21 @@ _ui_handle_stanza(const char * const msg)
 {
     if (ui_xmlconsole_exists()) {
         ProfWin *xmlconsole = wins_get_xmlconsole();
-	    
+
         if (g_str_has_prefix(msg, "SENT:")) {
-	    win_vprint_line(xmlconsole, '!', COLOUR_ONLINE, "<- %s", &msg[6]);
-	} else if (g_str_has_prefix(msg, "RECV:")) {
-	    win_vprint_line(xmlconsole, '!', COLOUR_AWAY, "-> %s", &msg[6]);
-	}
-
-	win_update_virtual(xmlconsole);
-	if (wins_is_current(xmlconsole)) {
-	    ui_current_page_off();
-	}
+            win_print_line_no_time(xmlconsole, 0, "SENT:");
+            win_print_line_no_time(xmlconsole, COLOUR_ONLINE, &msg[6]);
+            win_print_line_no_time(xmlconsole, COLOUR_ONLINE, "");
+        } else if (g_str_has_prefix(msg, "RECV:")) {
+            win_print_line_no_time(xmlconsole, 0, "RECV:");
+            win_print_line_no_time(xmlconsole, COLOUR_AWAY, &msg[6]);
+            win_print_line_no_time(xmlconsole, COLOUR_ONLINE, "");
+        }
+
+        if (wins_is_current(xmlconsole)) {
+            win_update_virtual(xmlconsole);
+            ui_current_page_off();
+        }
     }
 }