about summary refs log tree commit diff stats
path: root/src/command/cmd_defs.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2018-01-27 23:51:03 +0000
committerJames Booth <boothj5@gmail.com>2018-01-27 23:51:03 +0000
commite571ccd8ea5a60b25a4b8c52d0ae62bec95e027c (patch)
tree4200b690bd5c4142067feea17bf57401bf4c3447 /src/command/cmd_defs.c
parent2e414797a472a4f55206453fb7d5e139f7a30f3b (diff)
downloadprofani-tty-e571ccd8ea5a60b25a4b8c52d0ae62bec95e027c.tar.gz
Fix tests, move glob creation
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r--src/command/cmd_defs.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c
index 8d483fe0..6d4a6ab9 100644
--- a/src/command/cmd_defs.c
+++ b/src/command/cmd_defs.c
@@ -795,20 +795,21 @@ static struct cmd_t command_defs[] =
             CMD_TAG_GROUPCHAT)
         CMD_SYN(
             "/rooms",
-            "/rooms match <glob>",
+            "/rooms filter <glob>",
             "/rooms service <service>",
-            "/rooms service <service> match <glob>")
+            "/rooms service <service> filter <glob>")
         CMD_DESC(
             "List the chat rooms available at the specified conference service. "
             "If no argument is supplied, the account preference 'muc.service' is used, 'conference.<domain-part>' by default. "
-            "The match argument accepts a glob and returns only room names that match.")
+            "The filter argument accepts a glob (including * and ?) and filters the results.")
         CMD_ARGS(
             { "service <service>", "The conference service to query." },
-            { "match <glob>", "The string to match before displaying results."})
+            { "filter <glob>", "The glob to filter results by."})
         CMD_EXAMPLES(
             "/rooms",
-            "/rooms match *development*",
-            "/rooms service conference.jabber.org")
+            "/rooms filter *development*",
+            "/rooms service conference.jabber.org",
+            "/rooms service conference.jabber.org filter *xsf*")
     },
 
     { "/bookmark",