SVN: toys/stbr/stbr.tcl

shadzik shadzik at pld-linux.org
Tue May 15 04:49:25 CEST 2007


Author: shadzik
Date: Tue May 15 04:49:24 2007
New Revision: 8540

Modified:
   toys/stbr/stbr.tcl
Log:
- don't log sender if spec doesn't exist at given branch or at all


Modified: toys/stbr/stbr.tcl
==============================================================================
--- toys/stbr/stbr.tcl	(original)
+++ toys/stbr/stbr.tcl	Tue May 15 04:49:24 2007
@@ -37,7 +37,7 @@
 foreach spec $specs {
 if {([string match *:* $spec])} {set splited [split $spec ":"];set spec [lindex $splited 0]; set branch [lindex $splited 1]} {set branch "HEAD"}
 if {!([string match *.spec $spec])} { append spec ".spec"}
-if {([cvs $spec $branch] == 0)} {putserv "privmsg $chan :$nick: There is no such spec ($spec) on branch $branch in PLD's repository."; return 0}
+if {([cvs $spec $branch] == 0)} {putserv "privmsg $chan :$nick: There is no such spec ($spec) on branch $branch in PLD's repository."; exec sqlite $logfile "delete from stbr where sender='$nick';"; return 0}
 lappend rspecs $spec; append rspecs ":$branch"
 if {[exec $file $nick $first $spec]==0} {putserv "privmsg $chan :$nick: An error occured. Couldn't send STBR Mail for $spec."; return 1}
 set tfile [open $towho r]


More information about the pld-cvs-commit mailing list