i have build a little protection script, but so really it doesn't work.
if the users name is [paul] ... the the script defines $nick as paul .. not as [paul]. why? how i can fix it?
Code: Select all
bind mode - "* -o" dopprot
proc dopprot {dopprot nick uhost chan mode arg} {
global botnick
if {($mode == "-o") && ($arg == $botnick) && ([onchan L $chan])} {
putserv "PRIVMSG L :chanlev $chan $nick -aovg"
putserv "PRIVMSG L :op $chan"
putserv "MODE $chan -o+b $nick *!$uhost"
putserv "KICK $chan $nick"
} else {
if {($mode == "-o") && ($arg == $botnick) && ([onchan Q $chan])} {
putserv "PRIVMSG Q :chanlev $chan $nick -ovt+ab"
putserv "PRIVMSG Q :op $chan"
putserv "MODE $chan -o+b $nick *!$uhost"
putserv "KICK $chan $nick"
}
}
}
have anybody some scripts or very good tutorials of these problems for me?!
thanks,
strupde
ps: sry for english, i am a german.