Exempt Lock

By Acclamator on Nov 17, 2008

This will keep you on the +e (except) list so people cannot undo your +e and ban you.
usage: /elock activates the script.
usage: /except sets your name and host to the +e list.
This also kicks people when they undo your +e, so don't use this where your aren't supposed to have +e.

alias elock { if ($group(#elock) == off) { .enable #elock | echo -a Elock activated. }
  else { .disable #elock | echo -a Elock deactivated. }
}
#elock off
on *:RAWMODE:*: { if ($nick == $me) { HALT }
  if ($1 == -e) && ($remove($2,!*@*) == $me) { kick $chan $nick | /mode $chan +e $me }
  elseif ($1 == -e) && ($remove($2,!*@*) == $address($me,2)) { kick $chan $nick | /mode $chan +e $address($me,2) }
}
#elock end
alias except { mode $chan +ee $me $address($me,2) }

Comments

Sign in to comment.
DarkTan   -  Jan 24, 2009

is there a way to integrate this in to a bot with a user list in .ini format?

 Respond  
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.