Changeset 267 for trunk/bMotion.tcl
- Timestamp:
- 09/16/03 06:22:33 (9 years ago)
- File:
-
- 1 edited
-
trunk/bMotion.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bMotion.tcl
r266 r267 31 31 } 32 32 33 foreach letter [split "d12345678" {}] { 34 set bMotionCache($letter,lastlog) "" 35 set bMotionCache($letter,lastcount) 0 36 } 37 33 38 proc bMotion_putloglev { level star text } { 34 global bMotion_testing 39 global bMotion_testing bMotionCache 35 40 regsub "bMotion:" $text "" text 36 41 set text2 "" … … 41 46 42 47 if {$bMotion_testing == 0} { 48 if {$bMotionCache($level,lastlog) == $text} { 49 incr bMotionCache($level,lastcount) 50 return 51 } 52 if {$bMotionCache($level,lastcount) > 0} { 53 putloglev $level $star "($level)Previous message repeated $bMotionCache($level,lastcount) time(s)" 54 } 43 55 putloglev $level $star "($level)$text" 56 set bMotionCache($level,lastlog) $text 57 set bMotionCache($level,lastcount) 0 44 58 } 45 59 }
Note: See TracChangeset
for help on using the changeset viewer.
