Advertisement
Dragone2

ProteggiNet.mrc

Oct 18th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 3.30 KB | None | 0 0
  1. ######################
  2. # Script by Dragone2 #
  3. ######################
  4. alias defcon {
  5.   if (%protegginet. [ $+ [ $network ] ] != 1) { set %protegginet. [ $+ [ $network ] ] 1 | echo -a 4ATTENZIONE: Modalità di protezione del network attivata - (Funge solo con Anope IRC Services e se sei IRCop con accesso al canale di logs) }
  6.   else { set %protegginet. [ $+ [ $network ] ] 0 | echo -a Modalità di protezione del network disattivata! }
  7. }
  8.  
  9. alias -l raiseerror {
  10.   if (!$line($active,0)) { linesep -a }
  11.   echo $colour(info) -a $1-
  12.   linesep -a
  13.   halt
  14. }
  15.  
  16. alias split {
  17.   if (($1 == -c) && ($0 < 2)) || (($1 != -c) && ($0 < 3)) { raiseerror * /split: Insufficient parameters }
  18.   var %c, %g, %i = 1, %name = $iif($1 == -c,$2,$v1)
  19.   if ($1 == -c) { var %c = $true }
  20.   .alias %name $+ 0
  21.   while ($isalias(%name $+ %i)) {
  22.     .alias %name $+ %i
  23.     %g = %i + 1
  24.     while ($isalias($+(%name,%i,-,%g))) {
  25.       .alias $+(%name,%i,-,%g)
  26.       inc %g
  27.     }
  28.     .alias $+(%name,%i,-)
  29.     inc %i
  30.   }
  31.   %i = %i - 1
  32.   while (%i) {
  33.     .alias $+(%name,-,%i)
  34.     dec %i
  35.   }
  36.   if (!%c) {
  37.     %i = 1
  38.     tokenize 13 $replace($3-,$2,$cr)
  39.     while ($eval($ $+ %i,2) != $null) {
  40.       if (%i < $0) {
  41.         %g = %i + 1
  42.         while ($eval($ $+ %g,2) != $null) {
  43.           .alias $+(%name,%i,-,%g) return $eval($+($,%i,-,%g),2)
  44.           inc %g
  45.         }
  46.       }
  47.       .alias $+(%name,%i) return $eval($ $+ %i,2)
  48.       .alias $+(%name,%i,-) return $eval($+($,%i,-),2)
  49.       inc %i
  50.     }
  51.     %i = %i - 1
  52.     .alias %name $+ 0 return %i
  53.     while (%i) {
  54.       inc %c
  55.       .alias $+(%name,-,%c) return $eval($ $+ %i,2)
  56.       dec %i
  57.     }
  58.   }
  59. }
  60.  
  61. ;UnrealIRCd 4.0
  62. on *:SNOTICE:*Client connecting*: {
  63.   if ($me !isin $1-) && (%protegginet. [ $+ [ $network ] ] == 1) {
  64.     set %glinea $5
  65.     /split n @ %glinea
  66.     if (.it !isin $n2) && (127.0.0.1 !isin $n2) && (localhost !isin $n2) && (192.168 !isin $n2) { /gline *@ $+ $left($n2,-1) 0 Auto-Ban by %logo $+  | .timerprotegginet1 1 600 unset %protegginet. [ $+ [ $network ] ] | .timerprotegginet2 1 600 echo -a Modalità di protezione per $network disattivata automaticamente. }
  67.   }
  68. }
  69. ;UnrealIRCd 3.2.X - Locale
  70. on *:SNOTICE:*Client connecting on port*: {
  71.   if ($me !isin $1-) && (%protegginet. [ $+ [ $network ] ] == 1) {
  72.     set %glinea $10
  73.     /split n @ %glinea
  74.     if (.it !isin $n2) && (127.0.0.1 !isin $n2) && (localhost !isin $n2) && (192.168 !isin $n2) { /gline *@ $+ $left($n2,-1) 0 Auto-Ban by %logo $+  | .timerprotegginet1 1 600 unset %protegginet. [ $+ [ $network ] ] | .timerprotegginet2 1 600 echo -a Modalità di protezione per $network disattivata automaticamente. }
  75.   }
  76. }
  77. ;UnrealIRCd 3.2.X - Remoto
  78. on *:SNOTICE:*Client connecting at *: {
  79.   if ($me !isin $1-) && (%protegginet. [ $+ [ $network ] ] == 1) {
  80.     set %glinea $9
  81.     /split n @ %glinea
  82.     if (.it !isin $n2) && (127.0.0.1 !isin $n2) && (localhost !isin $n2) && (192.168 !isin $n2) { /gline *@ $+ $left($n2,-1) 0 Proxy }
  83.   }
  84. }
  85. on *:TEXT:*:#: {
  86.   if ($nick == Global) && (USERS: == $1) && (%protegginet. [ $+ [ $network ] ] == 1) && ($me !isin $1-) { /split n @ $2 | if (.it !isin $n2) && (127.0.0.1 !isin $n2) && (localhost !isin $n2) && (192.168 !isin $n2) { /os akill add +0 *@ $+ $n2 Auto-Ban by %logo $+  | .timerprotegginet 1 600 unset %protegginet. [ $+ [ $network ] ] } }
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement