Mercurial > hg > egg-tcls
changeset 481:4e19db35cdab
config.quotedb.examples: Update examples.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 22 Oct 2019 17:43:51 +0300 |
parents | 057e399d86f6 |
children | 0e50c8440ea2 |
files | config.quotedb.example |
diffstat | 1 files changed, 11 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/config.quotedb.example Fri Sep 20 12:29:57 2019 +0300 +++ b/config.quotedb.example Tue Oct 22 17:43:51 2019 +0300 @@ -87,10 +87,17 @@ ### # 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 ""} -proc quote_msg_cmd {unick uhost uhand utext} { qdb_command "!quote" "quotedb" $unick $uhost $uhand "" $utext 0 ""} +bind pub - !vitsi vitsi_pub_cmd +bind msg - !vitsi vitsi_msg_cmd +proc vitsi_pub_cmd {unick uhost uhand uchan utext} { qdb_command "!vitsi" "quotedb" $unick $uhost $uhand $uchan $utext 1 "%2 (%1)"} +proc vitsi_msg_cmd {unick uhost uhand utext} { qdb_command "!vitsi" "quotedb" $unick $uhost $uhand "" $utext 0 "%2 (%1)"} + + +# Bind !quote -command for table "kissa" +bind pub - !kissa kissa_pub_cmd +bind msg - !kissa kissa_msg_cmd +proc kissa_pub_cmd {unick uhost uhand uchan utext} { qdb_command "!kissa" "kissadb" $unick $uhost $uhand $uchan $utext 1 "kissa %2 (%1)"} +proc kissa_msg_cmd {unick uhost uhand utext} { qdb_command "!kissa" "kissadb" $unick $uhost $uhand "" $utext 0 "kissa %2 (%1)"} bind pub - !spede spede_pub_cmd