SVN: toys/stbr/stbr.tcl
shadzik
shadzik at pld-linux.org
Mon May 14 22:37:29 CEST 2007
Author: shadzik
Date: Mon May 14 22:37:22 2007
New Revision: 8534
Modified:
toys/stbr/stbr.tcl
Log:
- fix last change
Modified: toys/stbr/stbr.tcl
==============================================================================
--- toys/stbr/stbr.tcl (original)
+++ toys/stbr/stbr.tcl Mon May 14 22:37:22 2007
@@ -30,10 +30,10 @@
if {!([string match th-ready $first] || [string match th-test $first])} {putserv "privmsg $chan :$nick: Usage: !stbr th-{ready|test} spec1 spec2 ..."; return 0}
if {([string length $second]<2)} {putserv "privmsg $chan :$nick: Usage: !stbr th-{ready|test} spec1 spec2 ..."; return 0}
if {$cntr<1} {incr cntr} {utimer 30 "set cntr 0"; putserv "privmsg $chan :$nick: I reached my STBR time limit (30sec). Please try later."; return 0}
-exec sqlite $logfile "INSERT INTO stbr VALUES('$date','$nick');"
-foreach spec $specs {
set time [clock seconds]
set date [clock format $time -format "%d.%m.%Y %H:%M:%S"]
+exec sqlite $logfile "INSERT INTO stbr VALUES('$date','$nick');"
+foreach spec $specs {
if {!([string match *.spec $spec])} { append spec ".spec"}
if {([cvs $spec] == 0)} {putserv "privmsg $chan :$nick: There is no such spec ($spec) in PLD's repository."; return 0}
lappend rspecs $spec
More information about the pld-cvs-commit
mailing list