| View previous topic :: View next topic |
| Author |
Message |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Thu Mar 23, 2006 10:58 am Post subject: |
|
|
You are a god Sir_Fz. But you forgot a bracket.
| Quote: | | set cmd [string trimleft [join [lrange [split $nho] 1 end-1]] \"] |
I added it. Now it works perfectly. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Mar 23, 2006 1:21 pm Post subject: |
|
|
Glad it worked. Also, something like this should work:
| Code: | # check every how many seconds?
set nhotime 30
if {[timerexists needhop]==""} {
utimer $nhotime needhop
}
setudef str need-halfop
proc needhop {} {
global botnick
foreach chan [channels] {
if {![botishalfop $chan] && [set nho [channel get $chan need-halfop]] != ""} {
eval $nho
}
}
utimer $::nhotime needhop
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Thu Mar 23, 2006 1:38 pm Post subject: |
|
|
| Yes you are right. |
|
| Back to top |
|
 |
|