[09:54] Tcl error [just_left]: wrong # args: should be "just_left nick host handle channel"
here is the procedure giving the error;
proc just_left {nick host handle channel } {
global mainbot tempchan goodchan mainchan
if { $mainbot == 0 } { return 0 }
if {[string tolower $channel] == [string tolower $mainchan]} {
if {[matchattr $nick o]} { return 0 }
if {[matchattr $handle o]} { return 0 }
if {[onchan $nick $goodchan]} { putserv "KICK $goodchan $nick
if {[onchan $nick $tempchan]} { putserv "KICK $tempchan $nick
}
}
#####>>>>> END bind part - * just_left
this procedure is used to kick a user on an invited channel if he parts the main channel.
can someone tell me what i need to do to correct the error.