now i got my first unsolveable error. :/
The complete src if following:[15:31] wrong # args: should be "proc name args body"
while executing
"proc l_prot_banmode {nick uhost hand chan mc moden} {
global lchans lchanmode
if {[isbotnick $nick] || ![string match "$chan" "lchans"]} {return}
..."
Can anyone find a failure ? i found none. ... the script worked fine as i used:bind mode - "* +k" l_prot_banmode
bind mode - "* +i" l_prot_banmode
bind mode - "* +l" l_prot_banmode
proc l_prot_banmode {nick uhost hand chan mc moden} {
global lchans lchanmode
if {[isbotnick $nick] || ![string match "$chan" "lchans"]} {return}
putquick "PRIVMSG TheLBot@lightweight.quakenet.org :chanlev $chan $nick -$chanmode"
if {[botisop $chan]} {
putquick "MODE $chan -o+b $nick $uhost"
}
if {[botonchan $chan]} && [botisop $chan]} {
putquick "KICK $chan $nick :\002AntiOvertake Script\002 - Don't change Chanmodes!"
}
}
proc l_prot_banmode {nick uhost hand chan mc moden} {
global lchans lchanmode
if {[isbotnick $nick] || ![string match "$chan" "lchans"]} {return}
putquick "PRIVMSG TheLBot@lightweight.quakenet.org :chanlev $chan $nick -$chanmode"
putquick "MODE $chan -o+b $nick $uhost"
putquick "KICK $chan $nick :\002AntiOvertake Script\002 - Don't change Chanmodes!"
}