X-Git-Url: https://git.distorted.org.uk/~mdw/ircbot/blobdiff_plain/5694c7d4c4585b42a88b9b55fa0b0c9f36af462f..bb72ec7b3d1a2cac3c26fea0c812c17f5559b478:/asynch.tcl diff --git a/asynch.tcl b/asynch.tcl index 406f8d7..a32dda4 100755 --- a/asynch.tcl +++ b/asynch.tcl @@ -16,7 +16,7 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # -# $Id: asynch.tcl,v 1.1 2000-08-14 21:09:51 ijackson Exp $ +# $Id: asynch.tcl,v 1.2 2002-03-27 15:14:51 ijackson Exp $ proc asynch_startcmd {} { global asynch_sofar @@ -47,10 +47,10 @@ proc morecmd {} { } } -if {[llength $argv] && "[lindex $argv 0]" == "-d"} { +if {[llength $argv] && ![string compare [lindex $argv 0] "-d"]} { set tcl_traceExec 1 set argv [lreplace $argv 0 0] -} elseif {[llength $argv] && "[lindex $argv 0]" == "-dd"} { +} elseif {[llength $argv] && ![string compare [lindex $argv 0] "-dd"]} { set tcl_traceExec 2 set argv [lreplace $argv 0 0] }