# HG changeset patch # User Matti Hamalainen # Date 1315509267 -10800 # Node ID 0da3461eb871d94f504bc7bbc9e9ba878794600d # Parent 4a39a8707fdfe36e042c24bf1fbbc5291a79596b quotedb: Retrieving total number of quotes in the table does not seem to be working, so commenting out the code. diff -r 4a39a8707fdf -r 0da3461eb871 quotedb.tcl --- a/quotedb.tcl Thu Sep 08 21:53:55 2011 +0300 +++ b/quotedb.tcl Thu Sep 08 22:14:27 2011 +0300 @@ -172,14 +172,15 @@ } set quoteID [quotedb last_insert_rowid] - set numQuotes 0 -# set numQuotes [quotedb ] +# set numQuotes 0 +# set usql "SELECT count(*) AS numQuotes FROM $utable" +# if {![qdb_sql_exec $upublic $unick $uchan $usql]} { return 0 } ### Log some data qdb_log "Added $utable #$quoteID ($unick/$uhand@$uchan): $utext" ### Report success to user - qdb_msg $upublic $unick $uchan "tietokantaa sörkitty (#$quoteID / $numQuotes), kiitos." + qdb_msg $upublic $unick $uchan "tietokantaa $utable sörkitty (#$quoteID), kiitos." return 1 }