DALnet kick, ban, deop protection

By sicks on Jun 13, 2004

create a new remote file for this snippet

;prot with services by Sicks
on 1:BAN:#: if ($address($me,3) iswm $banmask) { mode $chan -ob+b $nick $banmask $address($nick,3) | kick $chan $nick sizzle! }
on 1:INVITE:#: if (*.dal.net iswm $server) && ($nick == Chanserv) { join $chan }
on 1:kick:#: if ($knick == $me) && ($nick != $me) { set %kicker $nick | set %kickchan $chan | set %kickermask $address(%kicker,3) | cs deop %kickchan %kicker }
on 1:JOIN:#: if ($nick == $me) && (%kicker != $null) { timer 1 1 kick %kickchan %kicker back on that ass | timer 1 1 mode %kickchan +b %kickermask | timer 1 2 unset %kicker | timer 1 2 unset %kickchan | timer 1 2 unset %kickermask } 
on 1:DEOP:#: if ($opnick == $me) && ($nick != $me) { set %dopper $nick | set %doppermask $address(%dopper,3) | set %dopchan $chan | cs op $chan $me }
on 1:op:#: if ($opnick == $me) && (%doppermask != $null) { kick %dopchan %dopper | mode %dopchan +b %doppermask | unset %dopper | unset %doppermask | unset %dopchan }
raw 471:*: cs invite $2 $me
raw 473:*: cs invite $2 $me
raw 474:*: cs invite $2 $me
raw 475:*: cs invite $2 $me

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.