This is a superbitch code that i made (with help from some friends).
Code: Select all
bind mode - "*+o*" bitch
set chans "*"
proc bitch {nick uhost hand chan mode target} {
global botnick chans; set handle [nick2hand $target $chan]
if {([lsearch -exact [split [string tolower $chans]] [string tolower $chan]] != -1) || ($chans == "*")} {
if {([string match "*+o*" $mode]) && (![string equal -nocase $nick $botnick]) && (![string equal -nocase $target $botnick]) && ([botisop $chan])} {
if {(![matchattr $hand fbomn|fbomn $chan]) && ([matchattr $handle bomn|omn $chan])} { return 0 }
if {([matchattr $hand bomn|omn $chan])} { return 0 }
if {(![wasop $target $chan])} {
putquick "KICK $chan $nick :Permission Denied ;-)"
putquick "KICK $chan $target :Permission Denied ;-)"
}
}
}
}
Example: .netchanset #chan1 +superbitch
And then the superbitch.tcl would work only on that channel. And on all other channels that i would set them like this.
Can anyone please help me with this?
P.S. That netsplit in post subject is mistake.
Thanks,
esix