Changeset 291
- Timestamp:
- 09/22/03 09:45:17 (8 years ago)
- File:
-
- 1 edited
-
trunk/modules/output.tcl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/output.tcl
r288 r291 202 202 set newText [bMotion_abstract_get $BOOM] 203 203 if {$newText == ""} { 204 #insert old style 204 205 set var [subst $$BOOM] 205 206 set line [bMotionInsertString $line "%VAR\{$BOOM\}" [pickRandom $var]] 206 } else { 207 #insert old style 207 } else { 208 208 set line [bMotionInsertString $line "%VAR\{$BOOM\}" $newText] 209 209 } … … 295 295 } 296 296 297 set ruser "" 298 297 299 #choose a new user? 298 300 if [regexp {^%PICKUSER\[(.+)?\]} $line matches conditions] { … … 306 308 #try to get sensible names 307 309 #set uhost [getchanhost $bMotionCache(randomUser)] 308 set ruser [bMotionGetRealName $bMotionCache(randomUser)] 309 set line [bMotionInsertString $line "%ruser" $ruser] 310 311 catch { 312 set ruser [bMotionGetRealName $bMotionCache(randomUser)] 313 } 314 315 if {$ruser != ""} { 316 set line [bMotionInsertString $line "%ruser" $ruser] 317 } 310 318 311 319 #set uhost [getchanhost $bMotionCache(remoteBot)] 312 320 #putloglev 3 * "bMotion: remote bothost = $uhost" 313 set rbot [bMotionGetRealName $bMotionCache(remoteBot)] 321 set rbot "" 322 catch { 323 set rbot [bMotionGetRealName $bMotionCache(remoteBot)] 314 324 #putloglev 3 * "bMotion: remote bot nick = $rbot" 315 set line [bMotionInsertString $line "%rbot" $rbot] 325 } 326 327 if {$rbot != ""} { 328 set line [bMotionInsertString $line "%rbot" $rbot] 329 } 316 330 317 331 set line [bMotionInterpolation2 $line]
Note: See TracChangeset
for help on using the changeset viewer.
