changeset 276:e04f434b7023

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 23 Jan 2015 11:22:28 +0200
parents 9cf0c86e72b2
children 64fe89074450
files config.quotedb.example
diffstat 1 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/config.quotedb.example	Fri Jan 23 11:19:29 2015 +0200
+++ b/config.quotedb.example	Fri Jan 23 11:22:28 2015 +0200
@@ -5,11 +5,16 @@
 ##########################################################################
 
 ###
-### General options
+### SQL database settings
 ###
 # Path and filename of the SQLite database
 set qdb_file "quotedb.sqlite"
 
+
+###
+### General settings
+###
+
 # Verbosity (1 = be verbose, 0 = be quiet)
 set qdb_verbose 0
 
@@ -28,10 +33,6 @@
 set qdb_max_modtime 30
 
 
-###
-### Search related settings
-###
-
 # Limit how many quotes should the "!<cmd> find" command show at most.
 set qdb_showmax_pub 3
 
@@ -39,7 +40,11 @@
 set qdb_showmax_priv 5
 
 
-# EXAMPLE!
+###
+### Bind commands for each database etc.
+###
+
+# Bind !quote -command for table "quotedb"
 bind pub - !quote quote_pub_cmd
 bind msg - !quote quote_msg_cmd
 proc quote_pub_cmd {unick uhost uhand uchan utext} { qdb_command "!quote" "quotedb" $unick $uhost $uhand $uchan $utext 1 }
@@ -60,4 +65,3 @@
 bind msg - !tuksu tuksu_msg_cmd
 proc tuksu_pub_cmd {unick uhost uhand uchan utext} { qdb_command "!tuksu" "tuksudb" $unick $uhost $uhand $uchan $utext 1 }
 proc tuksu_msg_cmd {unick uhost uhand utext}       { qdb_command "tuksu" "tuksudb" $unick $uhost $uhand "" $utext 0 }
-