about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-01-13 19:53:42 +0000
committerJames Booth <boothj5@gmail.com>2013-01-13 19:53:42 +0000
commit6abbe62710b553fa67282746a921afdeb31e86e1 (patch)
treedde3e8abebe5cc0660a66320ee809ab2e835cd6b /src
parent18a4f7da0ea652a5dce3275e183674e4e874aed1 (diff)
downloadprofani-tty-6abbe62710b553fa67282746a921afdeb31e86e1.tar.gz
Allow whitespace in argument to /info
Diffstat (limited to 'src')
-rw-r--r--src/command.c2
-rw-r--r--src/windows.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 3606ad3b..d80d58c5 100644
--- a/src/command.c
+++ b/src/command.c
@@ -252,7 +252,7 @@ static struct cmd_t main_commands[] =
           NULL } } },
 
     { "/info",
-        _cmd_info, parse_args, 1, 1,
+        _cmd_info, parse_args_with_freetext, 1, 1,
         { "/info jid", "Find out a contacts presence information.",
         { "/info jid",
           "---------",
diff --git a/src/windows.c b/src/windows.c
index 28b63c74..a4b12917 100644
--- a/src/windows.c
+++ b/src/windows.c
@@ -1168,7 +1168,7 @@ cons_show_status(const char * const contact)
     if (pcontact != NULL) {
         _cons_show_contact(pcontact);
     } else {
-        cons_show("No such contact %s in roster.", contact);
+        cons_show("No such contact \"%s\" in roster.", contact);
     }
 }