Advertisement
westor

BadWords addon for Dark v1.0

Nov 12th, 2015
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 5.06 KB | None | 0 0
  1. on *:text:*:#: {
  2.   if ($nick isop #botops) { return }
  3.   IF ($nick isop $chan) { RETURN }
  4.   if (!$window(@Botlog)) { window -n @Botlog }
  5.   if ($1 == !badword) && ($_chan($chan)) && ($istok(on off,$2,32)) && ($nick isop $chan) {
  6.     set %_badword $iif($2 == off,$v2,on)
  7.     msg $chan Badword protection is now %_badword
  8.     return
  9.   }
  10.   if (%_badword == on) && ($me isop $chan) && ($nick !isop $chan) && ($_chan($chan)) {
  11.     var %badword = bitch,asshole,abspritz,abgewixxt,wixxen,fotze,ficken,biatch,suck dick,bumsen,schlampe,horny,fickgeil,penis,vagina,sieg heil,Schlampe,dickhead,dickface,pussy,whore,cunt,fuck you,shitface,fucker,faggot,tiersex,
  12.     var %a = $numtok(%badword,44)
  13.     while (%a) {
  14.       var %bchk = $gettok(%badword,%a,44)
  15.       if (%bchk isin $1-) {
  16.         if (!$($+(%,badwordslock,.,$chan),2)) {
  17.           inc -eu30 $+(%,badword,.,$nick,.,$chan)
  18.           var %times = $($+(%,badword,.,$nick,.,$chan),2)
  19.           if (%times == 1) {
  20.             if (*german* !iswm $chan) {
  21.               notice $nick 12 $+ $nick $+ 7, 4Your behavior is inappropriate. Please change your way of chatting.
  22.               aline -a @Botlog $timestamp [Bad-Behaviour] $network - $chan - $nick - $fulladdress - Warned for Behaviour ( $+ $1- $+ )
  23.               write Botlog.txt $timestamp [Bad-Behaviour] $network - $chan - $nick - $fulladdress - Warned for Behaviour ( $+ $1- $+ )
  24.               echo $chan 4 $timestamp [Bad-Behaviour] $network - $chan - $nick - $fulladdress - ( $+ $1- $+ )
  25.             }
  26.             if (*german* iswm $chan) {
  27.               notice $nick 12 $+ $nick $+ 7, 4Dein Verhalten ist unangebracht, bitte aendere deine Art zu chatten.
  28.               echo $chan  4 $timestamp [Bad-Behaviour] $network - $chan - $nick - $fulladdress - ( $+ $1- $+ )
  29.               aline -a @Botlog $timestamp [Bad-Behaviour-GER] $network - $chan - $nick - $fulladdress - Warned for Behaviour ( $+ $1- $+ )
  30.               write Botlog.txt $timestamp [Bad-Behaviour-GER] $network - $chan - $nick - $fulladdress - Warned for Behaviour ( $+ $1- $+ )
  31.             }
  32.             inc -eu1800 $+(%,badwordwarned,.,$chan)
  33.             if ($($+(%,badwordwarned,.,$chan),2) == 5) {
  34.               unset $+(%,badword,.,$nick,.,$chan)
  35.               unset $+(%,badwordwarned,.,$chan)
  36.               set -eu30 $+(%,badwordslock,.,$chan) 1
  37.             }
  38.           }
  39.           elseif (%times == 2) {
  40.             if (*german* !iswm $chan) {
  41.               kick $chan $nick Please change your way of chatting.
  42.               echo  $chan 4 $timestamp [Bad-Behaviour] $network - $chan - $nick - $fulladdress - ( $+ $1- $+ )
  43.               aline -a @Botlog $timestamp [Bad-Behaviour] $network - $chan - $nick - $fulladdress - Kicked for Behaviour ( $+ $1- $+ )
  44.               write Botlog.txt $timestamp [Bad-Behaviour] $network - $chan - $nick - $fulladdress - Kicked for Behaviour ( $+ $1- $+ )
  45.             }
  46.             if (*german* iswm $chan) {
  47.               kick $chan $nick Dein Verhalten ist unangebracht, bitte aendere deine Art zu chatten.
  48.               echo  $chan  4 $timestamp [Bad-Behaviour] $network - $chan - $nick - $fulladdress - ( $+ $1- $+ )
  49.               aline -a @Botlog $timestamp [Bad-Behaviour-GER] $network - $chan - $nick - $fulladdress - Kicked for Behaviour ( $+ $1- $+ )
  50.               write Botlog.txt $timestamp [Bad-Behaviour-GER] $network - $chan - $nick - $fulladdress - Kicked for Behaviour ( $+ $1- $+ )
  51.             }
  52.           }
  53.           elseif (%times > 2) {
  54.             unset $+(%,badword,.,$nick,.,$chan)
  55.             if (*german* !iswm $chan) {
  56.               aline -a @Botlog $timestamp [Bad-Behaviour] $network - $chan - $nick - $fulladdress - Banned for Behaviour ( $+ $1- $+ )
  57.               write Botlog.txt $timestamp [Bad-Behaviour] $network - $chan - $nick - $fulladdress - Banned for Behaviour ( $+ $1- $+ )
  58.               ban -ku3600 $chan $nick 2 Banned: Please change your way of chatting.
  59.               echo  $chan  4 $timestamp [Bad-Behaviour] $network - $chan - $nick - $fulladdress - ( $+ $1- $+ )
  60.             }
  61.             if (*german* iswm $chan) {
  62.               aline -a @Botlog $timestamp [Bad-Behaviour-GER] $network - $chan - $nick - $fulladdress - Banned for Behaviour ( $+ $1- $+ )
  63.               write Botlog.txt $timestamp [Bad-Behaviour-GER] $network - $chan - $nick - $fulladdress - Banned for Behaviour ( $+ $1- $+ )
  64.               ban -ku3600 $chan $nick 2 Gebannt: Dein Verhalten ist unangebracht, bitte aendere deine Art zu chatten.
  65.               echo  $chan  4 $timestamp [Bad-Behaviour] $network - $chan - $nick - $fulladdress - ( $+ $1- $+ )
  66.             }
  67.           }
  68.         }
  69.       }
  70.       dec %a
  71.     }
  72.   }
  73. }
  74.  
  75. alias -l _chan {
  76.   ; Change the channels for the bot to work on below, to make it work in all channels just input “#”.
  77.   var %a = #, %b = $numtok(%a,44)
  78.   while (%b) {
  79.     if ($1 == $gettok(%a,%b,44)) || (%a == $chr(35)) {
  80.       return $true
  81.     }
  82.     dec %b
  83.   }
  84. }
  85.  
  86. on *:exit: { unset %badword.* }
  87.  
  88. menu channel  {
  89.   .Turn badword filter $iif(%_badword == on,off,on) : set %_badword $iif(%_badword == on,off,on)
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement