Do not debug if debug off
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Jun 2002 23:47:38 +0000 (23:47 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Jun 2002 23:47:38 +0000 (23:47 +0000)
ledmodule.tcl

index 250f600..27e08cc 100644 (file)
@@ -80,7 +80,7 @@ proc ldebug {facil m} {
     #    d$deviceset
     #    c$lchan
     #    {}             for system stuff
-    if {![llength debugusers]} return
+    if {![llength $debugusers]} return
     if {[regexp {[md]([^:]+)\:} $facil dummy username] &&
         [lsearch -exact $debugusers $username]==-1} return