changeset 518:7fdc069840cc

quotedb: Show help instead.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 02 May 2020 07:41:41 +0300
parents 894bc9632ece
children 1cfa567f9500
files config.quotedb.example quotedb.tcl
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/config.quotedb.example	Sat May 02 07:38:07 2020 +0300
+++ b/config.quotedb.example	Sat May 02 07:41:41 2020 +0300
@@ -70,7 +70,6 @@
 
   "fmt_search" "#@1@: @2@ (@3@@@4@)"
   "no_matches" "@name@-haku ei tuottanut tuloksia."
-  "no_arguments" "Hakuparametreja ei annettu?"
 
   "you_voted" "Äänestit @name@ #@1@ -> @2@, arvosana nyt @3@"
   "vote_updated" "@name@-äänesi #@1@ päivitetty -> @2@, arvosana nyt @3@"
@@ -95,6 +94,7 @@
   "help_update"    "@cmd@ update <id> <teksti>"
   "help_delete"    "@cmd@ del <id>"
   "help_vote"      "@cmd@ vote \[\[<id>\] \[1|-1\]\]"
+  "help_find"      "@cmd@ find [hakuparametrit]"
 
   "quote_deleted"  "@name@ #@1@ poistettu@2@."
   "quote_too_old"  "@name@ quote #@1@ vanhempi kuin @2@ minuuttia, ei poisteta."
--- a/quotedb.tcl	Sat May 02 07:38:07 2020 +0300
+++ b/quotedb.tcl	Sat May 02 07:41:41 2020 +0300
@@ -417,7 +417,7 @@
 
   # Check if any arguments exist
   if {[llength $fpatlist] == 0} {
-    qdb_msg $ucmd $utable $upublic $unick $uchan "no_arguments"
+    qdb_msg $ucmd $utable $upublic $unick $uchan "help_find"
     return 0
   }