Advertisement
makimaki

prt

Feb 20th, 2011
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.76 KB | None | 0 0
  1. alias badwords {
  2.   var %bwlist cunt|khunt|kunt
  3.   return $calc($regex($1-,%bwlist))
  4. }
  5.  
  6. alias badkick {
  7.   var %id $uid($2)
  8.   if (%bad. [ $+ [ %id ] ] = 2) { user.ban $1 $2 1440 badword  Do not say that here. 24 hour ban | return }
  9.   if (%bad. [ $+ [ %id ] ] = 1) { set %bad. [ $+ [ %id ] ] 2 |  user.ban $1 $2 60 badword Do not say that here. 1 hour ban | return }
  10.   else { set  %bad. [ $+ [ %id ] ] 1 | kick $1 $2 Do not say that here. }
  11. }
  12.  
  13. on *:JOIN:#: {
  14.   if ($get.lvl(Global_Admin,$nick) || $get.lvl(Global_Owner,$nick) || $get.lvl(Local_ $+ # $+ _Owner,$nick) || $get.lvl(Global_Host,$nick) || $get.lvl(Local_ $+ # $+ _Host,$nick)) { return }
  15.   if (!$hget(cProt)) { hmake cProt 15 }
  16.   if ($hget(cProt,$+(JOIN,$chan,$nick)) >= 3) {
  17.     user.ban # $nick 5 JoinFlood Flooding 5min time out
  18.     ;echo $chan flooder
  19.   }
  20.   hinc -u20 cProt $+(JOIN,$chan,$nick)
  21. }
  22.  
  23.  
  24. on *:text:*:#: {
  25.   if ($badwords($1-)) {
  26.     if ($get.data(#,badword) != halt) {  badkick # $nick }
  27.   }
  28.   if ($get.lvl(Global_Admin,$nick) || $get.lvl(Global_Owner,$nick) || $get.lvl(Local_ $+ # $+ _Owner,$nick) || $get.lvl(Global_Host,$nick) || $get.lvl(Local_ $+ # $+ _Host,$nick)) { return }
  29.   if (!$hget(cProt)) { hmake cProt 15 }
  30.   if ($hget(cProt,$+(TEXT,$chan,$nick)) >= 4) {
  31.     user.ban # $nick 5 TextFlood  Flooding 5 min time out.
  32.     ; echo $chan flooder
  33.   }
  34.   hinc -u2 cProt $+(TEXT,$chan,$nick)
  35. }
  36.  
  37. on *:action:*:#: { if ($badwords($1-)) {
  38.     if ($get.data(#,badword) != halt) {  badkick # $nick }
  39. } }
  40.  
  41.  
  42. menu channel {
  43.   Bot Autos
  44.   .$style($iif(!$get.data(#,badword),,1)) Bad word Kick halt: $iif($get.data(#,badword) = halt, rem.data # badword, add.data # badword halt) | echo -a $iif($get.data(#,badword) = halt, bad word kick halted for #, bad word kick enabled for #)
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement