Advertisement
makimaki

Bad word

Jan 3rd, 2011
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. alias badwords {
  2. var %bwlist slut|nigger|bitch|cunt|faggot
  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 *:text:*:#: { if ($badwords($1-)) {
  14. if ($get.data(#,badword) != halt) { badkick # $nick }
  15. } }
  16.  
  17. on *:action:*:#: { if ($badwords($1-)) {
  18. if ($get.data(#,badword) != halt) { badkick # $nick }
  19. } }
  20.  
  21.  
  22. menu channel {
  23. Bot Autos
  24. .$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 #)
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement