glacier_rat

Glacier_Rat

Apr 22nd, 2010
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. if ($regex($mid($1,1,1),/^[+-]$/i)) { mode # $1- }
  2. if ($regex($1,/^([!@.])?(add|del|(a)?list)$/Si)) {
  3. cs access $chan $remove($1,$iif($remove($1,$left($1,1)) = alist,$left($1,2),$left($1,1))) $iif($2, $2, $null) $iif($3, $3, $null)
  4. if (($3) && ($3 isnum) && ($regex($1,/^([!@.])?(add)$/Si))) {
  5. $iif($3 isnum 10-9999, .mode $chan +ao-hv $str($2 $chr(32),4), $&
  6. $iif($3 isnum 5-9, .mode $chan +o-ahv $str($2 $chr(32),4), $&
  7. $iif($3 = 4, .mode $chan +h-aov $str($2 $chr(32),4), $&
  8. $iif($3 = 3, .mode $chan +v-aoh $str($2 $chr(32),4), $&
  9. $iif($3 < 3, .mode $chan -aohv $str($2 $chr(32),4), $null $&)))))
  10. }
  11. $iif($regex($1,/^([!@.])?(add)$/Si),.notice $2 You have been added to the access list in $chan at level $3 $+.,noop)
  12. $iif($regex($1,/^([!@.])?(del)$/Si),.notice $2 You have been deleted from the access list in $chan,noop)
  13. }
  14. if ($regex($1,/^([!@.])?(del)$/Si)) {
  15. mode $chan -aohv $str($2 $chr(32),4)
  16. }
Add Comment
Please, Sign In to add comment