Changeset 1019 for trunk/plugins/en/output_OWNER.tcl
- Timestamp:
- 08/23/09 19:22:05 (3 years ago)
- File:
-
- 1 edited
-
trunk/plugins/en/output_OWNER.tcl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/output_OWNER.tcl
r961 r1019 1 #2 #3 1 # vim: fdm=indent fdn=1 4 2 # … … 6 4 ############################################################################### 7 5 # This is a bMotion plugin 8 # Copyright (C) James Michael Seward 2000-200 86 # Copyright (C) James Michael Seward 2000-2009 9 7 # 10 8 # This program is covered by the GPL, please refer the to LICENCE file in the … … 18 16 proc bMotion_plugin_output_OWNER { channel line } { 19 17 20 set previous_line "" 21 22 while {[regexp -nocase "%OWNER\{(.*?)\}" $line matches BOOM]} { 18 if {[regexp -nocase "%OWNER\{(.*?)\}" $line matches BOOM]} { 23 19 set BOOM [string map {\\ \\\\ [ \\\[ ] \\\] \{ \\\{ \} \\\} $ \\\$ \" \\\" | \\\|} $BOOM] 24 20 … … 26 22 regsub -nocase "%OWNER\{$BOOM\}" $line [bMotionMakePossessive $BOOM] line 27 23 regsub -all "\\\\" $line "" line 28 if {$line == $previous_line} {29 putlog "bMotion: ALERT! looping too much in %OWNER code with $line (no change since last parse)"30 set line ""31 break32 }33 set previous_line $line34 24 } 35 25 return $line
Note: See TracChangeset
for help on using the changeset viewer.
