about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-10-14 23:38:39 +0100
committerJames Booth <boothj5@gmail.com>2016-10-14 23:38:39 +0100
commit54cf1dbec43ccc3c300a04c26c8da54538f2da32 (patch)
treeb4c4cc737cd7f18fbbee54508cbf60d6d972e1a9 /src/command
parent24f0dc2734baf13ff5ecbb3e46bc08b809ee4736 (diff)
downloadprofani-tty-54cf1dbec43ccc3c300a04c26c8da54538f2da32.tar.gz
Add win_printf_line
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_funcs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 7d4f0064..08d80466 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -3108,7 +3108,7 @@ cmd_status(ProfWin *window, const char *const command, gchar **args)
                 if (occupant) {
                     win_show_occupant(window, occupant);
                 } else {
-                    win_printf(window, '-', 0, NULL, 0, 0, "", "No such participant \"%s\" in room.", usr);
+                    win_printf_line(window, THEME_DEFAULT, "No such participant \"%s\" in room.", usr);
                 }
             } else {
                 ui_current_print_line("You must specify a nickname.");
@@ -4681,13 +4681,13 @@ cmd_tiny(ProfWin *window, const char *const command, gchar **args)
     }
 
     if (!tinyurl_valid(url)) {
-        win_printf(window, '-', 0, NULL, 0, THEME_ERROR, "", "/tiny, badly formed URL: %s", url);
+        win_printf_line(window, THEME_ERROR, "/tiny, badly formed URL: %s", url);
         return TRUE;
     }
 
     char *tiny = tinyurl_get(url);
     if (!tiny) {
-        win_printf(window, '-', 0, NULL, 0, THEME_ERROR, "", "Couldn't create tinyurl.");
+        win_printf_line(window, THEME_ERROR, "Couldn't create tinyurl.");
         return TRUE;
     }