egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

utimer problems

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
topdawg_b
Voice


Joined: 07 Dec 2008
Posts: 32

PostPosted: Sat Dec 20, 2008 12:44 am    Post subject: utimer problems Reply with quote

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
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Dec 20, 2008 11:02 am    Post subject: Re: utimer problems Reply with quote

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
View user's profile Send private message
topdawg_b
Voice


Joined: 07 Dec 2008
Posts: 32

PostPosted: Sat Dec 20, 2008 3:56 pm    Post subject: Reply with quote

thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber