ok I tried both neither worked
no errors they just didn't kill the utimer
and the
# Commence with the kickban
putlog "$nick did not reply or pass was wrong"
putserv "PRIVMSG $nick :Wrong password or no reply"
still fired
which I don't want to happen
I will post part of the script this time
Please help a newbie out
as you will see I have the first reply, to my post, added to the script
# Process the version reply for mirc
proc reply:version_check { nick host hand dest keyword text } {
global ch_pass botnick
set reply [string tolower $text]
if { [string match "*mirc*" "$reply"] } {
putserv "PRIVMSG $nick :Channel Password $ch_pass"
putserv "PRIVMSG $nick : Type /msg $botnick password <channel password> (In 2 minute you will be ban, if you don't reply)"
utimer 120 [list pass_ck $nick $host $hand &text]
}
}
#process the Password reply
bind msg - password pass_ck
proc pass_ck { nick host hand text } {
global channel ch_pass
if { $text == "$ch_pass"} {
foreach t [utimers] { if {[lindex $t 1] == "ch_pass"} { killutimer [lindex $t end] } }
putserv "PRIVMSG $nick :Password accepted"
putlog "$nick Password accepted" } {
# Commence with the kickban
putlog "$nick did not reply or pass was wrong"
putserv "PRIVMSG $nick :Wrong password or no reply"
putquick "MODE $channel +b [maskhost $host]"
putquick "KICK $channel $nick :Scripts are not welcome here."