Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ fortress.mrc - by exit 2003 © ] - [ dark_exit@hotmail.com - IRC-Hispano (#scripting) ]
- ( No copies ninguna parte de este código / Don´t copy any part of this code)
- ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- ; - DIALOGS -
- dialog Protec {
- title fortress 4.2 - Protecciones del Canal $str( ,70) by exit
- size -1 -1 293 230
- option dbu
- icon $scriptdirprotec.ico, 0
- tab "Protecciones del canal", 8, 4 3 284 202
- list 10, 18 31 258 149, tab 8 extsel
- box "", 11, 12 22 270 160, tab 8
- combo 43, 13 188 60 50, tab 8 size drop
- button "+", 44, 76 188 11 11, tab 8
- button "-", 45, 88 188 11 11, tab 8
- check "Desactivar todas", 6, 106 186 56 14, tab 8 push
- text "Exentos:", 35, 169 189 22 8, tab 8
- box "", 42, 164 183 1 17, tab 8
- check "Voices", 7, 192 186 30 14, tab 8 push
- check "Opers", 5, 222 186 30 14, tab 8 push
- check "Halfops", 34, 252 186 30 14, tab 8 push
- tab "Propiedades de las protecciones", 13
- box "Opciones de antispam", 14, 12 22 79 127, tab 13
- edit "", 15, 20 36 28 10, tab 13 autohs
- button "+", 16, 48 36 12 10, tab 13
- list 18, 20 49 63 93, tab 13 size
- button "-", 17, 60 36 12 10, tab 13
- button "-", 23, 139 37 12 10, tab 13
- button "+", 21, 127 37 12 10, tab 13
- edit "", 20, 99 37 28 10, tab 13 autohs
- list 22, 99 50 63 93, tab 13 size
- box "Palabras prohibidas", 19, 92 22 77 127, tab 13
- check "Contador de kicks:", 24, 178 36 55 10, tab 13
- text "Tiempo del temp-ban:", 25, 18 179 52 8, tab 13
- edit "", 26, 71 178 18 10, tab 13 autohs center
- text "Mascara del ban", 46, 18 163 42 8, tab 13
- combo 47, 64 161 203 80, tab 13 size drop
- box "", 48, 12 147 268 51, tab 13
- edit "", 49, 233 36 19 10, tab 13 read autohs center
- text "Reestablecer a", 50, 178 50 39 8, tab 13
- edit "", 51, 217 49 35 10, tab 13 autohs center
- button "Ok", 52, 254 49 21 11, tab 13
- box "kicks config", 53, 170 22 110 64, tab 13
- check "Usar siempre kick aleatorio", 54, 178 67 75 10, tab 13
- button "txt", 55, 254 67 21 11, tab 13
- box "", 62, 170 116 110 33, tab 13
- text "Tiempo del temp-ignore:", 63, 178 131 58 8, tab 13
- edit "", 64, 236 130 13 10, tab 13 autohs center
- text "segundos.", 65, 250 131 25 8, tab 13
- text "segundos.", 66, 90 179 25 8, tab 13
- text "kicks", 2, 255 37 15 8, tab 13
- edit "", 30, 178 100 94 10, tab 13 autohs
- button "?", 32, 151 37 12 10, tab 13
- button "?", 28, 72 36 12 10, tab 13
- check "Poner logo", 33, 233 182 37 10, tab 13
- box "Kick por defecto", 1, 170 87 110 31, tab 13
- button "Ok", 9, 225 211 56 14, ok
- text "Protecciones del canal ", 27, 58 211 116 8, disable center
- text "fortress 4.2", 29, 58 219 116 8, disable center
- }
- dialog editprot {
- title "fortress - Editor de Protecciones"
- size -1 -1 157 154
- option dbu
- box "Trigger", 4, 7 41 77 27
- edit "", 6, 12 51 16 10, autohs center
- text "veces en", 7, 29 52 24 8
- edit "", 8, 52 51 16 10, autohs center
- button "&Guardar configuraciones", 9, 4 132 98 15, ok
- text "seg.", 12, 69 52 11 8
- button "&Cancelar", 16, 103 132 49 15, cancel
- box "Castigo", 10, 87 41 61 74
- box "", 22, -7 -3 182 128
- check "", 3, 48 21 92 9
- box "", 1, 7 7 33 33
- icon 14, 15 15 18 16, $scriptdirProtec.ico, 0
- box "", 15, 40 7 108 33
- text "", 5, 72 185 1 1, hide
- text "Formato 2", 24, 30 52 50 8, hide
- text "No trigger para esta opción", 25, 12 53 67 8, disable
- list 11, 92 71 51 40, size
- text "Texto de castigo", 17, 17 73 42 8
- edit "", 18, 12 81 68 10, autohs
- button "+", 19, 92 62 11 8
- button "-", 20, 102 62 11 8
- button "up", 21, 112 62 15 8
- button "down", 26, 126 62 17 8
- text "Texto de aviso", 27, 17 93 42 7
- text "", 999, 500 500 0 0, hide
- edit "", 28, 12 100 68 10, autohs
- box "", 29, 8 67 76 48
- combo 30, 92 50 51 83, size drop
- check "Todos", 81, 8 43 24 10, hide
- check "+l si es mayor o igual a", 82, 8 55 65 10, hide
- check "otros", 83, 34 43 22 10, hide
- edit "", 84, 56 43 17 10, hide autohs
- button "?", 85, 73 43 10 10, hide
- edit "", 86, 72 55 12 10, hide autohs center
- }
- dialog protecH {
- title "fortress - Ayuda"
- size -1 -1 181 93
- option dbu
- box "", 12, 8 6 29 28
- box "", 2, 1 -1 179 93
- icon 13, 14 13 17 16, $scriptdirmirc.ico, 0
- text "", 1, 43 10 131 8
- text "", 3, 43 17 131 8
- text "", 4, 43 24 131 8
- text "", 5, 43 38 131 8
- text "", 6, 43 45 131 8
- text "", 7, 43 52 131 8
- text "", 8, 43 59 131 8
- text "", 9, 43 66 131 8
- text "fortress", 14, 8 37 25 8, disable right hide
- text "noticias", 15, 10 43 25 8, disable center hide
- text "", 16, 43 73 131 8
- text "", 17, 43 80 131 8
- text " ", 10, 43 31 131 8
- }
- ; - ALIASES -
- alias -l checkprotini2 {
- if (!$exists($scriptdircanales\ $+ # $+ .ini)) return $scriptdirprotec.ini
- else return $scriptdircanales\ $+ # $+ .ini
- }
- alias -l mode+L {
- var %mode $1-
- :left
- if ($left(%mode,1) !isnum) { var %mode = $remove(%mode,$left(%mode,1)) | goto left }
- :right
- if ($right(%mode,1) !isnum) { var %mode = $remove(%mode,$right(%mode,1)) | goto right }
- return %mode
- }
- alias -l modeOtros {
- var %_tmp3 $remove($1-,$chr(32),+,l,o,v)
- if (%_tmp3) {
- var %_tmp2 $len(%_tmp3)
- while (%_tmp2) {
- if ($mid(%_tmp3,%_tmp2,1) isin $readp(Proteger_Modos,otroslist)) var %return 1
- dec %_tmp2
- }
- }
- else { return $false }
- if (%return) return $true
- else return $false
- }
- alias -l Mayusnum {
- set %len $len($remove($1-,$chr(32)))
- while (%len) {
- set %upper $mid($remove($1-,$chr(32)),%len,1)
- if ($isupper(%upper) == $true) && (%upper isalpha) { inc %Mayus }
- dec %len
- }
- var %return %Mayus
- unset %upper , %len , %Mayus
- return %return
- }
- alias -l Colornum {
- set %protcol $remove($1-,,,,)
- set %protcol.num $numtok(%protcol,3)
- var %return $calc(%protcol.num - 1)
- unset %protco*
- return %return
- }
- alias -l find.protecs {
- var %max $findfile($scriptdircanales,*.ini,0)
- while (%max) {
- did -a protec 43 $remove($nopath($findfile($scriptdircanales,*.ini,%max)),.ini)
- dec %max
- }
- }
- alias -l readp {
- if ($dialog(protec)) {
- var %tmp5 $iif(($did(protec,43).seltext == Global),$scriptdirProtec.ini, $scriptdircanales\ $+ $did(protec,43).seltext $+ .ini))
- return $remove($readini(%tmp5,$1,$2-),$chr(160))
- }
- else {
- var %tmp5 $iif(($exists($scriptdircanales\ $+ $chan $+ .ini) != $true),$scriptdirProtec.ini, $scriptdircanales\ $+ $chan $+ .ini))
- return $remove($readini(%tmp5,$1,$2-),$chr(160))
- }
- }
- alias -l protlog return 1fortress(4.2) 5
- alias -l inccount { writeini $scriptdirProtec.ini setup countnum $calc($readini($scriptdirProtec.ini,setup,countnum) + 1) }
- alias -l dll.views { return $scriptdirmdx\views.mdx }
- alias -l dll.mdx { return $scriptdirmdx\mdx.dll }
- alias -l set.mdx.init { dll $dll.mdx SetMircVersion $version | dll $dll.mdx MarkDialog $dname }
- alias -l protechelp dialog $iif($dialog(protech),-ve,-m protech) protech
- alias -l editprot dialog $iif($dialog(editprot),-ve,-m editprot) editprot
- alias fortress dialog $iif($dialog(protec),-ve,-m protec) protec
- alias -l pEncode return $replace($1-,,±B›,,±K›,,±U›,,±O›)
- alias -l pDecode return $replace($1-,±B›,,±O›,,±K›,,±U›,)
- alias -l checkprotini return $iif(($did(protec,43).seltext == Global),$scriptdirProtec.ini, $scriptdircanales\ $+ $did(protec,43).seltext $+ .ini))
- alias -l readp return $readini($scriptdirprotec.ini,$1,$2-)
- alias -l protinit {
- ; did -o protec 10 2 2 2 2 2 Tipo $chr(9) Num $chr(9) Seg $chr(9) Castigo $chr(9) Texto castigo
- did -o protec 10 3 2 2 2 $iif($readp(Flood_lineas,state) == 1,2,1) Flood de líneas $chr(9) $remove($readp(Flood_lineas,Num),$chr(160)) $chr(9) $remove($readp(Flood_lineas,Seg),$chr(160)) $chr(9) $remove($readp(Flood_lineas,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Flood_lineas,Text),$chr(160)))
- did -o protec 10 4 2 2 2 $iif($readp(Flood_caract,state) == 1,2,1) Flood de caracteres $chr(9) $remove($readp(Flood_caract,Num),$chr(160)) $chr(9) $remove($readp(Flood_caract,Seg),$chr(160)) $chr(9) $remove($readp(Flood_caract,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Flood_caract,Text),$chr(160)))
- did -o protec 10 5 2 2 2 $iif($readp(Flood_repet,state) == 1,2,1) Flood de repeticiones $chr(9) $remove($readp(Flood_repet,Num),$chr(160)) $chr(9) $remove($readp(Flood_repet,Seg),$chr(160)) $chr(9) $remove($readp(Flood_repet,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Flood_repet,Text),$chr(160)))
- did -o protec 10 6 2 2 2 $iif($readp(Flood_acciones_lineas,state) == 1,2,1) Flood de acciones/linea $chr(9) $remove($readp(Flood_acciones_lineas,Num),$chr(160)) $chr(9) $remove($readp(Flood_acciones_lineas,Seg),$chr(160)) $chr(9) $remove($readp(Flood_acciones_lineas,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Flood_acciones_lineas,Text),$chr(160)))
- did -o protec 10 7 2 2 2 $iif($readp(Flood_Acciones_caract,state) == 1,2,1) Flood de acciones/caract. $chr(9) $remove($readp(Flood_Acciones_caract,Num),$chr(160)) $chr(9) $remove($readp(Flood_Acciones_caract,Seg),$chr(160)) $chr(9) $remove($readp(Flood_Acciones_caract,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Flood_Acciones_caract,Text),$chr(160)))
- did -o protec 10 8 2 2 2 $iif($readp(Flood_notices_lineas,state) == 1,2,1) Flood de notices/linea $chr(9) $remove($readp(Flood_notices_lineas,Num),$chr(160)) $chr(9) $remove($readp(Flood_notices_lineas,Seg),$chr(160)) $chr(9) $remove($readp(Flood_notices_lineas,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Flood_notices_lineas,Text),$chr(160)))
- did -o protec 10 9 2 2 2 $iif($readp(Flood_notices_caract,state) == 1,2,1) Flood de notices/caract. $chr(9) $remove($readp(Flood_notices_caract,Num),$chr(160)) $chr(9) $remove($readp(Flood_notices_caract,Seg),$chr(160)) $chr(9) $remove($readp(Flood_notices_caract,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Flood_notices_caract,Text),$chr(160)))
- did -o protec 10 10 2 2 2 $iif($readp(Flood_Join,state) == 1,2,1) Flood de join $chr(9) $remove($readp(Flood_Join,Num),$chr(160)) $chr(9) $remove($readp(Flood_Join,Seg),$chr(160)) $chr(9) $remove($readp(Flood_Join,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Flood_Join,Text),$chr(160)))
- did -o protec 10 11 2 2 2 $iif($readp(Flood_CTCPs,state) == 1,2,1) Flood de CTCP´s $chr(9) $remove($readp(Flood_CTCPs,Num),$chr(160)) $chr(9) $remove($readp(Flood_CTCPs,Seg),$chr(160)) $chr(9) $remove($readp(Flood_CTCPs,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Flood_CTCPs,Text),$chr(160)))
- did -o protec 10 12 2 2 2 $iif($readp(Topic,state) == 1,2,1) Flood de topic $chr(9) $remove($readp(Topic,Num),$chr(160)) $chr(9) $remove($readp(Topic,Seg),$chr(160)) $chr(9) $remove($readp(Topic,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Topic,Text),$chr(160)))
- did -o protec 10 13 2 2 2 1 $chr(9) $chr(9) $chr(9) $chr(9)
- did -o protec 10 14 2 2 2 $iif($readp(Exceso_mayúsculas,state) == 1,2,1) Exceso de mayúsculas $chr(9) $remove($readp(Exceso_mayúsculas,Num),$chr(160)) $chr(9) $remove($readp(Exceso_mayúsculas,Seg),$chr(160)) $chr(9) $remove($readp(Exceso_mayúsculas,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Exceso_mayúsculas,Text),$chr(160)))
- did -o protec 10 15 2 2 2 $iif($readp(Exceso_colores,state) == 1,2,1) Exceso de colores $chr(9) $remove($readp(Exceso_colores,Num),$chr(160)) $chr(9) $remove($readp(Exceso_colores,Seg),$chr(160)) $chr(9) $remove($readp(Exceso_colores,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Exceso_colores,Text),$chr(160)))
- did -o protec 10 16 2 2 2 $iif($readp(Proteger_Modos,state) == 1,2,1) Proteger modos $chr(9) $remove($readp(Proteger_Modos,Num),$chr(160)) $chr(9) $remove($readp(Proteger_Modos,Seg),$chr(160)) $chr(9) $remove($readp(Proteger_Modos,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Proteger_Modos,Text),$chr(160)))
- did -o protec 10 17 2 2 2 $iif($readp(Palabras_prohibidas,state) == 1,2,1) Palabras prohibidas $chr(9) $remove($readp(Palabras_prohibidas,Num),$chr(160)) $chr(9) $remove($readp(Palabras_prohibidas,Seg),$chr(160)) $chr(9) $remove($readp(Palabras_prohibidas,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Palabras_prohibidas,Text),$chr(160)))
- did -o protec 10 18 2 2 2 $iif($readp(Antispam,state) == 1,2,1) Antispam $chr(9) $remove($readp(Antispam,Num),$chr(160)) $chr(9) $remove($readp(Antispam,Seg),$chr(160)) $chr(9) $remove($readp(Antispam,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Antispam,Text),$chr(160)))
- did -o protec 10 19 2 2 2 1 $chr(9) $chr(9) $chr(9) $chr(9)
- did -o protec 10 20 2 2 2 $iif($readp(Massdeop,state) == 1,2,1) Massdeop $chr(9) $remove($readp(Massdeop,Num),$chr(160)) $chr(9) $remove($readp(Massdeop,Seg),$chr(160)) $chr(9) $remove($readp(Massdeop,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Massdeop,Text),$chr(160)))
- did -o protec 10 21 2 2 2 $iif($readp(Masskick,state) == 1,2,1) Masskick $chr(9) $remove($readp(Masskick,Num),$chr(160)) $chr(9) $remove($readp(Masskick,Seg),$chr(160)) $chr(9) $remove($readp(Masskick,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Masskick,Text),$chr(160)))
- did -o protec 10 22 2 2 2 $iif($readp(Massban,state) == 1,2,1) Massban $chr(9) $remove($readp(Massban,Num),$chr(160)) $chr(9) $remove($readp(Massban,Seg),$chr(160)) $chr(9) $remove($readp(Massban,Action),$chr(160)) $chr(9) $pDecode($remove($readp(Massban,Text),$chr(160)))
- did $iif($readp(setup,state) == 1,-e,-b) $dname 10
- did $iif($readp(setup,state) == 1,-u,-c) $dname 6
- did $iif($readp(setup,voices) == 1,-c,-u) $dname 7
- did $iif($readp(setup,op) == 1,-c,-u) $dname 5
- did $iif($readp(setup,hop) == 1,-c,-u) $dname 34
- did -r $dname 18,22
- did $iif(($did(protec,43).seltext != Global),-b,-e) $dname 51,52,30
- did -ra $dname 26 $readp(setup,tempban)
- did -ra $dname 64 $readp(setup,tempignore)
- did -c $dname 47 $readp(setup,maskban)
- did $iif(($readp(setup,protlog) == 1),-c,-u) $dname 33
- var %max $ini($checkprotini,antispamwords,0)
- var %min 1
- while (%min <= %max) {
- did -a $dname 18 $ini($checkprotini,antispamwords,%min)
- inc %min
- }
- var %max $ini($checkprotini,Banwords,0)
- var %min 1
- while (%min <= %max) {
- did -a $dname 22 $ini($checkprotini,Banwords,%min)
- inc %min
- }
- did -ra $dname 30 $readp(Default_kick,txt)
- did $iif(($readp(Random_kick,state) == 1),-c,-u) $dname 54
- }
- alias -l protecCheckedit {
- if ($did($dname,$did).text !isnum) {
- var %length.num $len($did($dname,$did).text)
- var %num $did($dname,$did).text
- var %length.num $calc(%length.num - 1)
- did -r $dname $did
- did -ra $dname $did $left(%num,%length.num)
- }
- }
- alias -l ProtecClose { writeini $checkprotini $1 state $iif(($gettok($did(protec,10,$2),5,32) == 2),1,0) }
- alias -l protcast {
- set %prot.lines $did(editprot,11).lines
- var %min 1
- while (%min <= %prot.lines) {
- set %prot.return %prot.return $did(editprot,11,%min)
- inc %min
- }
- var %return %prot.return
- unset %prot.*
- return %return
- }
- alias -l protecEscritura {
- set %x.num $numtok($2-,$iif(($1 == Bold),2))
- set %x.min 1
- set %x.total
- while (%x.min <= %x.num) {
- if (%x.min != 1) && (%x.min != 3) && (%x.min != 5) && (%x.min != 7) && (%x.min != 9) {
- set %x.total $calc(%x.total + $len($gettok($1-,%x.min,2)))
- }
- inc %x.min
- }
- var %return %x.total
- unset %x.*
- return %return
- }
- ; - REMOTES EVENTOS DEL DIALOG -
- on *:dialog:protec:sclick:32: {
- protechelp
- did -ra protecH 1 Configura las palabras que serán consideradas como
- did -ra protecH 3 'prohibidas' en el canal.
- did -ra protecH 4 Ocurre exactamente igual que con la opción de antis-
- did -ra protecH 10 pam, al añadir una palabra entre asteriscos significa
- did -ra protecH 5 que la considerará cuando esté contenida en la frase,
- did -ra protecH 6 y si no está entre dos asteriscos pues que únicamente
- did -ra protecH 7 la frase debe de ser esa palabra.
- did -ra protecH 9 Es importante diferenciar este matiz, ya que puede oca-
- did -ra protecH 16 sionar confusión entre los usuarios que la configuran.
- }
- on *:dialog:protec:sclick:28: {
- protechelp
- did -ra protecH 1 Configura las palabras o frases que serán consideradas
- did -ra protecH 3 como publicidad no permitida.
- did -ra protecH 4 Al añadir por ejemplo *joder* a la lista significaría que
- did -ra protecH 5 tenida en la frase.
- did -ra protecH 6 Sin embargo si se añadiese a la lista la palabra joder
- did -ra protecH 7 sin asteriscos a ambos lados significaría que reconoce-
- did -ra protecH 8 ria el spam solamente si la frase completa fuese (joder)
- did -ra protecH 9 Por ej: - Vete de aqui joder
- did -ra protecH 16 En este caso no sería reconocida.
- did -ra protecH 10 reconocería el spam si la palabra (joder) estuviese con-
- }
- on *:dialog:editprot:sclick:85: {
- protechelp
- did -ra protecH 1 Configura los modos que serán protegidos cuando
- did -ra protecH 3 se efectúe el cambio. Para que funcione correctamente
- did -ra protecH 4 deben de ir separados por espacios.
- did -ra protecH 5 Los modos comunes que tienen la mayor parte de los
- did -ra protecH 6 servidores son +k +s +n +t +l
- did -ra protecH 7 No obstante algunos servidores incluyen otros, infórma-
- did -ra protecH 8 te de cuales son los de te servidor favorito para poder
- did -ra protecH 9 configurar esta opción más ampliamente.
- }
- on *:dialog:Protec:init:*: {
- .set.mdx.init
- dll $dll.mdx SetControlMDX $dname 10,1 listview checkboxes rowselect single showsel report nosortheader > $dll.views
- dll $dll.mdx SetFont $dname 10,43,44,45,6,35,7,5,34,27,29,14,19,15,16,17,18,28,20,21,22,23,32,53,24,49,2,50,51,52,54,55,30,63,64,65,46,47,25,26,66,33,9 Delta 13 500 tahoma
- dll $dll.mdx SetBorderStyle $dname 6,7,5,9,16,34,17,21,28,32,23,44,45,10,18,22,52,55,59,61,60 staticedge
- did -ra $dname 43 Global | did -c $dname 43 1
- did -i $dname 10 1 headerdims 172 40 40 150 400
- ; did -i $dname 1 1 headerdims 182 40 40 150 400
- did -i $dname 10 1 headertext Tipo de protección $chr(9) $+ Núm. $chr(9) $+ Seg. $chr(9) $+ Castigo o acción $chr(9) $+ Texto de castigo
- didtok $dname 47 32 *!fortress@virtual.host *!*fortress@virtual.host *!*@virtual.host *!*fortress@*.host *!*@*.host nick!fortress@virtual.host nick!*fortress@virtual.host nick!*@virtual.host nick!*fortress@*.host nick!*@*.host
- if ($readp(setup,countstate) == 1) { did -c $dname 24 }
- did -ra $dname 49 $readp(setup,countnum)
- protinit | find.protecs
- }
- on *:dialog:Protec:dclick:10: {
- if (!$dialog(editprot)) {
- if ($did($dname,10).sel != 12) && ($did($dname,10).sel != 18) {
- editprot
- did -ra editprot 5 $did(protec,10).sel
- did -ra editprot 999 10
- $iif(($gettok($did(protec,10).seltext,5,32) == 2),did -c editprot 3)
- did -ra editprot 3 $mid($gettok($did(protec,10,$did(protec,10).sel),1,9),13,60) | did -h editprot 24,25
- var %num $remove($remove($mid($gettok($did(protec,10,$did(protec,10).sel),2,9),10,60),$chr(32)),$chr(160))
- if (%num != $chr(45)) { did -vra editprot 6 %num }
- else { did -vra editprot 6 - | did -b editprot 6 }
- var %seg $remove($remove($mid($gettok($did(protec,10,$did(protec,10).sel),3,9),10,60),$chr(32)),$chr(160))
- if (%seg != $chr(45)) { did -vra editprot 8 %seg }
- else { did -vra editprot 8 - | did -b editprot 8 }
- if ($did($dname,$did).sel == 3) || ($did($dname,$did).sel == 6) || ($did($dname,$did).sel == 8) || ($did($dname,$did).sel == 13) || ($did($dname,$did).sel == 14) { did -v editprot 24 | did -h editprot 25,7,8,12 }
- if ($did($dname,$did).sel == 3) || ($did($dname,$did).sel == 6) || ($did($dname,$did).sel == 8) { did -ra editprot 24 caractéres por linea }
- if ($did($dname,$did).sel == 13) { did -ra editprot 24 mayúsculas por línea }
- if ($did($dname,$did).sel == 14) { did -ra editprot 24 colores por línea }
- if ($did($dname,$did).sel == 16) || ($did($dname,$did).sel == 17) { did -h editprot 6,7,8,12 | did -v editprot 25 }
- if ($did($dname,$did).sel == 15) { did -v editprot 81,82,83,84,85,86 | did -h editprot 6,7,8,12,25,4 }
- var %chars32 $numtok($remove($mid($gettok($did(protec,10,$did(protec,10).sel),4,9),10,60),$chr(160)),32) | var %min 1
- while (%min <= %chars32) { did -a editprot 11 $gettok($remove($mid($gettok($did(protec,10,$did(protec,10).sel),4,9),10,60),$chr(160)),%min,32) | inc %min }
- if ($remove($mid($gettok($did(protec,10,$did(protec,10).sel),5,9),10,400),$chr(160))) did -ra editprot 18 $ifmatch
- if (Aviso isin $readp($ini($checkprotini,$did(protec,10).sel),action)) { did -v editprot 28,27 | did -ra editprot 28 $remove($readp($ini($checkprotini,$did(protec,10).sel),aviso),$chr(160)) }
- else { did -b editprot 28,27 }
- if ($readp(proteger_modos,Todos) == 1) did -c editprot 81
- if ($readp(proteger_modos,Limited) == 1) { did -c editprot 82 | did -e editprot 86 }
- else { did -b editprot 86 }
- did -ra editprot 86 $readp(proteger_modos,Limitnum)
- if ($readp(proteger_modos,Otros) == 1) { did -c editprot 83 | did -e editprot 84 }
- else { did -b editprot 84 }
- did -ra editprot 84 $readp(proteger_modos,Otroslist)
- }
- }
- else dialog -v editprot
- }
- on *:dialog:protec:edit:*: {
- if ($did != 15) && ($did != 20) && ($did != 30) protecCheckedit
- if ($did == 64) { if ($did($dname,$did)) writeini $checkprotini setup tempignore $did($dname,$did) }
- if ($did == 26) { if ($did($dname,$did)) writeini $checkprotini setup tempban $did($dname,$did) }
- if ($did == 30) { if ($did($dname,$did)) writeini $checkprotini Default_kick txt $did($dname,$did) }
- }
- on *:dialog:editprot:edit:*: {
- if ($did == 6) || ($did == 8) protecCheckedit
- if ($did == 86) writeini $checkprotini proteger_modos limitnum $iif(($did($dname,$did)),$ifmatch,1)
- if ($did == 84) writeini $checkprotini proteger_modos Otroslist $did($dname,$did)
- }
- on *:dialog:editprot:sclick:30: {
- if ($did($dname,$did).sel == 7) { did -c $dname $did 10 }
- }
- on *:dialog:editprot:sclick:9: {
- if ($dialog(protec)) {
- did -o protec $did($dname,999) $did(editprot,5).text 2 + 2 2 $iif(($did(editprot,3).state == 1),2,1) $did(editprot,3).text $chr(9) $did(editprot,6).text $chr(9) $did(editprot,8).text $chr(9) $protcast $chr(9) $iif($did(editprot,18).text,$did(editprot,18).text,<default>)
- if $did($dname,6) { writeini $checkprotini $ini($checkprotini,$did($dname,5)) num $chr(160) $+ $did(editprot,6).text }
- if $did($dname,8) { writeini $checkprotini $ini($checkprotini,$did($dname,5)) seg $chr(160) $+ $did(editprot,8).text }
- writeini $checkprotini $ini($checkprotini,$did($dname,5)) Action $protcast
- writeini $checkprotini $ini($checkprotini,$did($dname,5)) State $iif(($did($dname,3) == 1),1,0)
- writeini $checkprotini $ini($checkprotini,$did($dname,5)) Text $PEncode($iif($did(editprot,18).text,$ifmatch,<default>))
- if ($did($dname,28)) writeini $checkprotini $ini($checkprotini,$did($dname,5)) Aviso $PEncode($did($dname,28))
- did -c protec $did($dname,999) $did($dname,5)
- }
- }
- on *:dialog:editprot:init:*: {
- .set.mdx.init
- dll $dll.mdx SetFont $dname 3,25,24,7,6,8,12,17,27,9,30,16,19,20,21,26,11,28,18,81,82,83,84,86 Delta 13 500 tahoma
- dll $dll.mdx SetBorderStyle $dname 9,16,85,19,20,21,26 staticedge
- didtok editprot 30 32 aviso kick kickban kicktempban ban tempban - ignore tempignore $chr(160)
- }
- on *:dialog:editprot:sclick:9: {
- if ($did(editprot,3).text) {
- var %prot $ifmatch
- if ($did(editprot,3).text == Lineas máximas) { Saveprot Prot1 | protchange %prot }
- elseif ($did(editprot,3).text == Lineas repetidas) { Saveprot Prot2 | protchange %prot }
- elseif ($did(editprot,3).text == Flood de CTCPs) { Saveprot Prot3 | protchange %prot }
- elseif ($did(editprot,3).text == Flood de acciones) { Saveprot Prot4 | protchange %prot }
- elseif ($did(editprot,3).text == Flood de notices) { Saveprot Prot5 | protchange %prot }
- elseif ($did(editprot,3).text == Flood de Join) { Saveprot Prot6 | protchange %prot }
- elseif ($did(editprot,3).text == Flood de nick) { Saveprot Prot7 | protchange %prot }
- elseif ($did(editprot,3).text == Exceso de mayúsculas) { Saveprot Prot8 | protchange %prot }
- elseif ($did(editprot,3).text == Exceso de colores) { Saveprot Prot9 | protchange %prot }
- elseif ($did(editprot,3).text == Exceso caractéres) { Saveprot Prot10 | protchange %prot }
- elseif ($did(editprot,3).text == Massdeop) { Saveprot Prot11 | protchange %prot }
- elseif ($did(editprot,3).text == Masskick) { Saveprot Prot12 | protchange %prot }
- elseif ($did(editprot,3).text == Massban) { Saveprot Prot13 | protchange %prot }
- elseif ($did(editprot,3).text == Palabras prohibidas) { Saveprot Prot14 | protchange %prot }
- elseif ($did(editprot,3).text == Antispam) { Saveprot Prot15 | protchange %prot }
- elseif ($did(editprot,3).text == Random kick) { protchange %prot }
- }
- }
- on *:dialog:protec:close:*: {
- ProtecClose.check
- }
- on *:dialog:protec:sclick:6: {
- ; echo -s writeini $checkprotini setup state $did($dname,$did).state
- if ($did($dname,$did).state == 1) { did -b $dname 10 | writeini $checkprotini setup state 0 }
- if ($did($dname,$did).state == 0) { did -e $dname 10 | writeini $checkprotini setup state 1 }
- }
- on *:dialog:protec:sclick:7: {
- if ($did($dname,$did).state == 1) { writeini $checkprotini setup voices 1 }
- if ($did($dname,$did).state == 0) { writeini $checkprotini setup voices 0 }
- }
- on *:dialog:protec:sclick:5: {
- if ($did($dname,$did).state == 1) { writeini $checkprotini setup op 1 }
- if ($did($dname,$did).state == 0) { writeini $checkprotini setup op 0 }
- }
- on *:dialog:protec:sclick:34: {
- if ($did($dname,$did).state == 1) { writeini $checkprotini setup hop 1 }
- if ($did($dname,$did).state == 0) { writeini $checkprotini setup hop 0 }
- }
- on *:dialog:protec:sclick:47: { writeini $checkprotini setup maskban $did($dname,$did).sel }
- on *:dialog:protec:sclick:24: { writeini $checkprotini setup countstate $iif(($did($dname,$did).state == 1),1,0) }
- on *:dialog:protec:sclick:52: {
- if ($did($dname,51)) {
- did -ra $dname 49 $did($dname,51)
- writeini $checkprotini setup countnum $did($dname,51)
- did -r $dname 51
- }
- }
- on *:dialog:editprot:sclick:19: {
- if ($did($dname,30).text) did -a $dname 11 $ifmatch
- if ($ifmatch == Aviso) { did -e $dname 28,27 | did -ra $dname 28 $iif(($readini($checkprotini,$ini($checkprotini,$did($dname,5)),aviso)),$ifmatch,Aviso sin especificar) }
- }
- on *:dialog:editprot:sclick:20: {
- if ($did($dname,11).sel) did -d $dname 11 $ifmatch
- set %lines $did($dname,11).lines
- while (%lines) {
- if ($did($dname,11,%lines) == Aviso) var %ok 1
- dec %lines
- }
- if (!%ok) { did -r $dname 28 | did -b $dname 27,28 }
- unset %lines
- }
- on *:dialog:editprot:sclick:21: {
- if ($did($dname,11).sel) {
- if ($ifmatch != 1) {
- set %up $calc($did($dname,11).sel - 1)
- set %down $did($dname,11,%up)
- did -o $dname 11 %up $did($dname,11).seltext
- did -o $dname 11 $did($dname,11).sel %down
- did -c $dname 11 %up
- unset %up , %down
- }
- }
- }
- on *:dialog:editprot:sclick:26: {
- if ($did($dname,11).sel) {
- if ($ifmatch != $did($dname,11).lines) {
- set %up $calc($did($dname,11).sel + 1)
- set %down $did($dname,11,%up)
- did -o $dname 11 %up $did($dname,11).seltext
- did -o $dname 11 $did($dname,11).sel %down
- did -c $dname 11 %up
- unset %up , %down
- }
- }
- }
- on *:dialog:protec:sclick:16: {
- if ($did($dname,15)) {
- did -a $dname 18 $did($dname,15)
- writeini $checkprotini antispamwords $did($dname,15) ok
- }
- }
- on *:dialog:protec:sclick:17: {
- if ($did($dname,18).sel) {
- remini $checkprotini antispamwords $did($dname,18).seltext
- did -d $dname 18 $did($dname,18).sel
- }
- }
- on *:dialog:protec:sclick:21: {
- if ($did($dname,20)) {
- did -a $dname 22 $did($dname,20)
- writeini $checkprotini Banwords $did($dname,20) ok
- }
- }
- on *:dialog:protec:sclick:23: {
- if ($did($dname,22).sel) {
- remini $checkprotini Banwords $did($dname,22).seltext
- did -d $dname 22 $did($dname,22).sel
- }
- }
- on *:dialog:protec:sclick:54: { writeini $checkprotini Random_kick state $iif(($did($dname,$did).state == 1),1,0) }
- on *:dialog:protec:sclick:55: { var %kickfile $findfile($scriptdir,*kicks*.txt,1)
- if ($exists(%kickfile) == $true) run %kickfile
- else var %error $input(No se encontró ningún fichero con el nombre $+ $crlf $+ kicks.txt en la carpeta $scriptdir $+ $crlf $+ $crlf $+ Por favor cree un archivo kicks.txt con una lista de kicks para poder usar esta opción.,572,Error con ficheros)
- }
- on *:dialog:protec:sclick:33: { writeini $checkprotini setup protlog $iif(($did($dname,$did).state == 1),1,0) }
- on *:dialog:editprot:sclick:81: { writeini $checkprotini Proteger_Modos Todos $iif(($did($dname,$did).state == 1),1,0) }
- on *:dialog:editprot:sclick:82: {
- did $iif(($did($dname,$did).state == 1),-e,-b) editprot 86
- writeini $checkprotini Proteger_Modos Limited $iif(($did($dname,$did).state == 1),1,0)
- }
- on *:dialog:editprot:sclick:83: {
- did $iif(($did($dname,$did).state == 1),-e,-b) editprot 84
- writeini $checkprotini Proteger_Modos Otros $iif(($did($dname,$did).state == 1),1,0)
- }
- on *:load: {
- if ($gettok($version,1,46) < 6) {
- unload -rs shitlist.mrc
- echo -s $+(,$color(Normal text),*) Tu versión actual del mIRC es $version ,para q el addon funcione correctamente se debe de estar usando una version 6.0* o superior
- halt
- }
- auser 46 *!-@*-
- auser 46 *!*@*bots.irc-hispano.org*
- echo -s $+(,$color(Normal text),* fortress Channel-Protections v4.2 cargado...)
- echo -s $+(,$color(Normal text),*) escribe '/fortress' para abrir el diálogo o bien en la barra de menú [fortress/Abrir].
- }
- on *:dialog:protec:sclick:44: {
- var %chan $remove($$?="Escribe el nombre del canal del cual se creará una nueva configuración",\,/,:,*,?,",<,>,|,$chr(32))
- if (%chan) {
- .copy -o $scriptdirprotec.ini $+($scriptdircanales\,%chan,.ini)
- did -a $dname 43 %chan | did -c $dname 43 $did(protec,43).lines | protinit | did -d protec 10 2
- }
- }
- on *:dialog:protec:sclick:45: {
- if (($did(protec,43).seltext != Global) && ($did(protec,43).sel)) {
- .remove $+($scriptdircanales\,$did(protec,43).seltext,.ini)
- did -d protec 43 $did(protec,43).sel
- did -c protec 43 1 | protinit | did -d protec 10 2
- }
- }
- on *:dialog:protec:sclick:43: {
- .protinit
- did -d protec 10 2
- }
- alias -l ProtecClose.check {
- ProtecClose Flood_lineas 2 | ProtecClose Flood_caract 3 | ProtecClose Flood_repet 4 | ProtecClose Flood_acciones_lineas 5
- ProtecClose Flood_Acciones_caract 6 | ProtecClose Flood_notices_lineas 7 | ProtecClose Flood_notices_caract 8
- ProtecClose Flood_Join 9 | ProtecClose Flood_CTCPs 10 | ProtecClose Topic 11
- ProtecClose Exceso_Mayúsculas 13 | ProtecClose Exceso_colores 14 | ProtecClose Proteger_Modos 15
- ProtecClose Palabras_prohibidas 16 | ProtecClose Antispam 17 | ProtecClose Massdeop 19
- ProtecClose Masskick 20 | ProtecClose Massban 21
- }
- on *:dialog:protec:sclick:10: { if ($gettok($did($dname,10,1),1,32) == stateclick) { .timerprot -m 1 100 ProtecClose.check | break } }
- ; - REMOTES EVENTOS DE PROTECCIONES -
- alias -l readpr {
- var %chan $scriptdircanales\ $+ $chan $+ .ini
- return $remove($iif(($exists(%chan) == $true),$readini(%chan,$1,$2-),$readini($scriptdirprotec.ini,$1,$2-)),$chr(160))
- }
- alias -l protstate { return $readpr(setup,state) }
- on ^*:TOPIC:#: {
- if ($level($fulladdress) != 46) && ($nick != $me) {
- if ($protstate == 1) {
- var %var = $+(%,Infraccion.,$nick,.,$chan)
- inc -u $+ $readpr(Topic,seg) $eval(%var,1)
- if ($eval(%var,2) >= $readpr(Topic,num)) {
- if ($readpr(Topic,State) == 1) {
- protpenalty Topic
- }
- haltdef
- }
- }
- }
- }
- CTCP 1:*:#: {
- if ($level($fulladdress) != 46) && ($nick != $me) {
- if ($protstate == 1) {
- var %var = $+(%,Infraccion.,$nick,.,$chan)
- inc -u $+ $readpr(Flood_CTCPs,seg) $eval(%var,1)
- if ($eval(%var,2) >= $readpr(Flood_CTCPs,num)) {
- if ($readpr(Flood_CTCPs,State) == 1) {
- protpenalty Flood_CTCPs
- }
- haltdef
- }
- }
- }
- }
- on @*:TEXT:*:#: {
- if ($protstate == 1) {
- if (!$hget(repet)) { hmake repet 200 }
- if ($level($nick) == 46) return
- if ($nick != $me) {
- if ($readpr(Flood_caract,State) == 1) {
- if ($len($1-) >= $readpr(Flood_caract,num)) {
- protpenalty Flood_caract
- halt
- }
- }
- if ($readpr(Flood_repet,State) == 1) {
- var %texto = $replace($1-,$chr(32),$chr(95))
- hinc -u $+ $readpr(Flood_repet,seg) repet $+($nick,.,$chan,.,%texto)
- if ($hget(repet,$+($nick,.,$chan,.,%texto)) >= $readpr(Flood_repet,num)) {
- protpenalty Flood_repet
- halt
- }
- }
- if ($readpr(Flood_lineas,State) == 1) {
- var %nick = $+(%,Infraccion.,$nick,.,$chan)
- inc -u $+ $readpr(Flood_lineas,seg)) $eval(%nick,1)
- if ($eval(%nick,2) >= $readpr(Flood_lineas,num)) {
- protpenalty Flood_lineas
- halt
- }
- }
- if ($readpr(Antispam,State) == 1) {
- set %num $ini($checkprotini2,antispamwords,0)
- if (%num >= 1) {
- while (%num) {
- if ($ini($checkprotini2,antispamwords,%num) iswm $1-) {
- protpenalty Antispam
- halt
- }
- dec %num
- }
- unset %num
- }
- }
- if ($readpr(Palabras_prohibidas,State) == 1) {
- var %num $ini($checkprotini2,Banwords,0)
- if (%num >= 1) {
- while (%num) {
- if ($ini($checkprotini2,Banwords,%num) iswm $1-) {
- protpenalty Palabras_prohibidas
- halt
- }
- dec %num
- }
- }
- }
- if ($readpr(Exceso_mayúsculas,State) == 1) {
- if ($mayusnum($1-) >= $readpr(Exceso_mayúsculas,num)) {
- protpenalty Exceso_mayúsculas
- halt
- }
- }
- if ($readpr(Exceso_colores,State) == 1) {
- if ($colornum($1-) >= $readpr(Exceso_colores,num)) {
- protpenalty Exceso_colores
- halt
- }
- }
- }
- }
- }
- on 1:DEOP:#:{
- if ($level($fulladdress) != 46) && ($nick != $me) {
- if ($protstate == 1) {
- if ($nick != $me) {
- if ($readpr(Massdeop,State) == 1) {
- var %nick = $+(%,Infraccion.,$nick,.,$chan)
- inc -u $+ $readpr(Massdeop,num) $eval(%nick,1)
- if ($eval(%nick,2) >= $readpr(Massdeop,seg)) {
- protpenalty Massdeop
- halt
- }
- }
- }
- }
- }
- }
- on 1:NOTICE:*:#: {
- if ($level($fulladdress) != 46) && ($nick != $me) {
- if ($protstate == 1) {
- if ($nick != $me) {
- if ($readpr(Flood_notices_caract,State) == 1) {
- if ($len($1-) >= $readpr(Flood_notices_caract,num)) {
- protpenalty Flood_notices_caract
- halt
- }
- }
- if ($readpr(Flood_notices_lineas,State) == 1) {
- var %nick = $+(%,Infraccion.,$nick,.,$chan)
- inc -u $+ $readpr(Flood_notices_lineas,seg)) $eval(%nick,1)
- if ($eval(%nick,2) >= $readpr(Flood_notices_lineas,num)) {
- protpenalty Flood_notices_lineas
- halt
- }
- }
- }
- }
- }
- }
- on 1:ACTION:*:#: {
- if ($level($fulladdress) != 46) && ($nick != $me) {
- if ($protstate == 1) {
- if ($nick != $me) {
- if ($readpr(Flood_Acciones_caract,State) == 1) {
- if ($len($1-) >= $readpr(Flood_Acciones_caract,num)) {
- protpenalty Flood_Acciones_caract
- halt
- }
- }
- if ($readpr(Flood_acciones_lineas,State) == 1) {
- var %nick = $+(%,Infraccion.,$nick,.,$chan)
- inc -u $+ $readpr(Flood_acciones_lineas,seg)) $eval(%nick,1)
- if ($eval(%nick,2) >= $readpr(Flood_acciones_lineas,num)) {
- protpenalty Flood_acciones_lineas
- halt
- }
- }
- }
- }
- }
- }
- on 1:KICK:#: {
- if ($level($fulladdress) != 46) && ($nick != $me) {
- if ($protstate == 1) {
- if ($readpr(Masskick,State) == 1) {
- var %var = $+(%,Infraccion.,$nick,.,$chan)
- inc -u $+ $readpr(Masskick,num) $eval(%var,1)
- if ($eval(%var,2) >= $readpr(Masskick,seg)) {
- protpenalty Masskick
- halt
- }
- }
- }
- }
- }
- on 1:BAN:#: {
- if ($level($fulladdress) != 46) && ($nick != $me) {
- if ($protstate == 1) {
- if ($readpr(Massban,State) == 1) {
- var %var = $+(%,Infraccion.,$nick,.,$chan)
- inc -u $+ $readpr(Massban,num) $eval(%var,1)
- if ($eval(%var,2) >= $readpr(Massban,seg)) {
- protpenalty Massban
- halt
- }
- }
- }
- }
- }
- on ^1:JOIN:#: {
- if ($level($fulladdress) != 46) && ($nick != $me) {
- if ($protstate == 1) {
- if ($readpr(Flood_Join,State) == 1) {
- if ($ignore($fulladdress) == $null) {
- var %var = $+(%,Infraccion.,$nick,.,$chan)
- inc -u $+ $readpr(Flood_Join,seg) $eval(%var,1)
- if ($eval(%var,2) >= $readpr(Flood_Join,num)) {
- protpenalty Flood_Join
- .ignore -u10 $fulladdress
- halt
- }
- }
- }
- }
- }
- }
- on ^*:MODE:#: {
- if ($level($fulladdress) != 46) && ($nick != $me) {
- if ($readpr(Proteger_Modos,State) == 1) {
- if ($readpr(Proteger_Modos,Todos) == 1) {
- protpenalty Proteger_Modos
- break
- }
- if ($readpr(Proteger_Modos,Limited) == 1) {
- if (l isin $1-) {
- if ($mode+L($1-) >= $readpr(Proteger_Modos,Limitnum)) {
- protpenalty Proteger_Modos
- break
- }
- }
- }
- if ($readpr(Proteger_Modos,Otros) == 1) {
- if ($modeOtros($1-) == $true) {
- protpenalty Proteger_Modos
- }
- }
- }
- }
- }
- alias -l protpenalty {
- if ($nick isop $chan) && ($readpr(setup,op) == 1) return
- if ($nick isvo $chan) && ($readpr(setup,voices) == 1) return
- if ($nick ishop $chan) && ($readpr(setup,hop) == 1) return
- if (!$hget(protec)) hmake protec 100
- set %protec $1
- if (!$hget(protec,$nick)) hadd protec $nick 0
- hinc protec $nick
- set %protec.max $numtok($readpr(%protec,action),32)
- :loop
- if ($hget(protec,$nick) > %protec.max) {
- hdec protec $nick
- goto loop
- }
- protaction $gettok($readpr(%protec,action),$hget(protec,$nick),32)
- unset %protec*
- halt
- }
- alias -l protaction {
- if ($1 == Aviso) { if ($me isop $chan) { protaviso %prota } }
- elseif ($1 == kick) { if ($me isop $chan) { protkick $2 } }
- elseif ($1 == kickban) { if ($me isop $chan) { protban $2 | protkick $2 } }
- elseif ($1 == kicktempban) { if ($me isop $chan) { prottempban $2 | protkick $2 } }
- elseif ($1 == ban) { if ($me isop $chan) { protban $2 } }
- elseif ($1 == tampban) { if ($me isop $chan) { prottempban $2 } }
- elseif ($1 == ignore) protignore $2
- elseif ($1 == tempignore) prottempignore $2
- }
- alias -l protkick { .kick $chan $nick $iif(($readpr(random_kick,state) == 1),$PDecode($read($findfile($scriptdir,*kicks*.txt,1))),$PDecode($readpr(%protec,text))) $iif(($readpr(setup,countstate) == 1),1# $+ $PDecode($readini($scriptdirprotec.ini,setup,countnum)) $+ )
- if ($readpr(setup,countstate) == 1) .inccount
- .ignore -u5 $address($nick,4)
- }
- alias -l protban { .ban $chan $mask($fulladdress,$readpr(setup,maskban)) }
- alias -l prottempban { .ban -u $+ $readpr(setup,tempban) $chan $mask($fulladdress,$readpr(setup,maskban)) | .ignore -u5 $nick }
- alias -l prottempignore { .ignore -u $+ $readpr(setup,tempignore) $mask($fulladdress,2) }
- alias -l protaviso { .notice $nick 5(fortress(4.2) - Aviso): $readpr(%protec,aviso) }
- alias -l protignore { .ignore $nick }
- alias -l prottemignore { .ignore -u $+ $readpr(setup,tempignore) $nick }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement