| View previous topic :: View next topic |
| Author |
Message |
topdawg_b Voice
Joined: 07 Dec 2008 Posts: 32
|
Posted: Sat Dec 20, 2008 12:44 am Post subject: utimer problems |
|
|
everything works except the timer the timr does nothing and reports no error. I havent got a clue what i need to do to fix it.
| Code: |
bind mode - "% -o" on_deop
proc on_deop { nick host hand chan mode target } {
global botnick banmask
set banmask [getchanhost $nick $chan]
if {$nick == $botnick} {return}
if {$target == $botnick} {
putserv "privmsg chanserv :ban $chan $nick 12Never 4De-op 12the bot!!!"
putserv "privmsg chanserv :op $chan $botnick"
utimer 10 {putquick "MODE $chan -b $banmask" }
}
}
|
|
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Dec 20, 2008 11:02 am Post subject: Re: utimer problems |
|
|
| Code: | | utimer 10 {putquick "MODE $chan -b $banmask" } |
Your problem is the curly bracings. This disables variable substitution. So literally what you are doing is putquick "MODE $chan -b $banmask". $chan isn't converted to a channel name, $banmask isn't a ban mask. Instead try the code below: | Code: | | utimer 10 [list putquick "MODE $chan -b $banmask"] |
_________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
topdawg_b Voice
Joined: 07 Dec 2008 Posts: 32
|
Posted: Sat Dec 20, 2008 3:56 pm Post subject: |
|
|
| thank you |
|
| Back to top |
|
 |
|