about summary refs log tree commit diff stats
path: root/src/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-07-29 21:47:30 +0100
committerJames Booth <boothj5@gmail.com>2012-07-29 21:47:30 +0100
commit2375b7ae526c585d17286f9ca5519398e88a11fa (patch)
tree1302046e6ac98d270b28a4cf30b36871e64f9580 /src/command.c
parentfe12352b57517d4346f3ca391b525894e5a61c7a (diff)
downloadprofani-tty-2375b7ae526c585d17286f9ca5519398e88a11fa.tar.gz
Show tinyurl errors and usage in chat windows
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 30c76b12..bbc77574 100644
--- a/src/command.c
+++ b/src/command.c
@@ -290,6 +290,9 @@ _cmd_tiny(const char * const inp)
             GString *error = g_string_new("/tiny, badly formed URL: ");
             g_string_append(error, url);
             cons_bad_show(error->str);
+            if (win_in_chat()) {
+                win_bad_show(error->str);
+            }
             g_string_free(error, TRUE);
             free(url);
         } else if (win_in_chat()) {
@@ -305,7 +308,10 @@ _cmd_tiny(const char * const inp)
             free(url);
         }
     } else {
-        cons_show("usage: /tiny url");
+        cons_show("Usage: /tiny url");
+        if (win_in_chat()) {
+            win_show("Usage: /tiny url");
+        }
     }
 
     return TRUE;