Advertisement
makimaki

Aop/Banscan

Jan 13th, 2011
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.49 KB | None | 0 0
  1.  
  2. ; -----------------------------)
  3. ; -- AOP & Banlist Fibonacci --)
  4. ; -----------------------------)
  5. ;Update aop, scan for banlisted users
  6. ;Created by MakiMaki for seraphim
  7.  
  8. ;AOP Update
  9. alias update.aop {
  10.   var %i 0, %o 0, %h 0
  11.   while (%i < $nick(#,0)) {
  12.     inc %i
  13.     if ($nick(#,%i) != $me) {
  14.       if ($nick(#,%i) isowner #) && (!$get.aop(# $+ _local_Owners, $uid($nick(#,%i)))) { add.aop # $+ _local_Owners $uid($nick(#,%i)) $nick(#,%i) # Owner | inc %o }
  15.       elseif ($nick(#,%i) isop #) && (!$get.aop(# $+ _local_Owners, $uid($nick(#,%i)))) && ($nick(#,%i) !isowner #) { add.aop # $+ _local_Host $uid($nick(#,%i)) $nick(#,%i) # Host | inc %h }
  16.   } }
  17.   echo -ta * %o Owners  and %h Hosts, New entrys have been logged. AOP Update Completed.
  18. }
  19.  
  20. ;Banlist room scan
  21. alias banscan {
  22.   var %i 0, %b 0
  23.   while (%i < $nick($1,0)) {
  24.     inc %i
  25.     if ($nick($1,%i) != $me) {
  26.       if ($get.data(Global_Banlist,$uid($nick($1,%i)))) { user.ban $1 $nick($1,%i) 0 Banlisted Banlist scan and $nick($1,%i) you are on ban status. | inc %b }
  27.       if ($get.data(local_ $+ # $+ _banlist,$uid($nick($1,%i)))) { user.ban $1 $nick($1,%i) 0 Banlisted Banlist scan and $nick($1,%i) you are on ban status. | inc %b }
  28.   } }
  29.   echo 7 -t $1 * Total of %b Banlisted users found.
  30. }
  31.  
  32. ;Grabs AOP Data
  33. alias get.aop return $readini(data\aop.ini,$1,$2)
  34. alias add.aop writeini data\aop.ini $1-
  35. alias rem.aop remini -n data\aop.ini $1-
  36.  
  37. ;Grabs Gen Data
  38. alias get.data return $readini(data\settings.ini,$1,$2)
  39. alias add.data writeini data\settings.ini $1-
  40. alias rem.data remini -n data\settings.ini $1-
  41. alias add.user writeini data\settings.ini $2 $uid($1) $1 - Reason $3-
  42. alias rem.user remini -n data\settings.ini $2 $uid($1)
  43. alias uid return $ial($1).user
  44.  
  45. ;Join event
  46. on *:JOIN:#: {
  47.   var %id $uid($nick)
  48.   if ($me !isop #) { return }
  49.  
  50.   ;Banlists
  51.   if ($level(%ad) == banlist) { user.ban # $nick 0 Banlisted You are currently on ban status $nick $+ , email anahera@null.net to get this removed. | return }
  52.   elseif ($get.data(Global_Banlist,%id)) { user.ban # $nick 0 Banlisted $gettok($get.data(Global_Banlist,%id), 2-, 32) | return }
  53.   elseif ($get.data(local_ $+ # $+ _banlist,%id)) && ($get.data(#,banlist) != halt) { user.ban # $nick 0 Banlisted $gettok($get.data(local_ $+ # $+ _banlist,%id), 2-, 32) | return }
  54.  
  55.  
  56.   ;AOP
  57.   if ($get.data(# $+ $network,AOP) != halt) {
  58.     if ($get.aop(# $+ _local_Owners,%id) { mode # +q $nick }
  59.     elseif ($get.aop(# $+ _local_Host,%id) { mode # +o $nick }
  60. } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement