I'm creating my own script, i have 2 questions.
When an user comes, he's noticed by the bot called Eva. When he "/notice botnick confirm", he's noticed by Eva, and kicked after 5 secs.
here is my code :
Code: Select all
set salon "#channel"
bind notc - * notc:confirm
proc notc:confirm { nick uhost handle text {dest "Eva"} } {
global salon
if {$text == "confirm"} {
putserv "NOTICE $nick :Vous avez maintenant confirmé"
pushmode $salon +v $nick
putlog "$nick - $uhost à confirmé"
utimer 5 { proc_kick }
}
proc proc_kick {} {
global salon
putkick $salon $nick "test"
}
}
Why ? Same problem for the timer, two timers are started .. ?(16:44:24) (Eva) [16:43] aaa - a@hide-D4B501FE.unknown.uunet.be à confirmé
(16:44:25) (Eva) [16:43] aaa - a@hide-D4B501FE.unknown.uunet.be à confirmé
(16:44:25) (Eva) [16:43] -aaa (a@hide-D4B501FE.unknown.uunet.be)- confirm
Why is all cloned ?
--
Second question, is concerning the proc_kick.
I want it to start after 5 secs, it works. But the user isnt kicked !
What do i have to insert here :
to catch the nick again ?proc proc_kick {} {
Thank you for your answers
Thib