Swear Protection 0.1

By Vortex on Jul 19, 2005

Swear protection, K+bans them if they swear. Give it a try, I was just bored when I made this.

#################################################
# Minor Swear Protection                        #
# Against Swearing                              #
# Kicks anyone who swears                       #
#################################################
;Swearing Protection by Sozou
on 1:LOAD:{
  echo -a Congrats! You loaded the Swearing Protection!
}
on 1:UNLOAD:{
  echo -a Unload Successfull
}
menu menubar,status,channel {
  -  
  Protection
  .Swearing
  ..On:/enable #acswearing | echo -a Swearing Protection is ON
  ..Off:/disable #acswearing | echo -a Swearing Protection is OFF
  -
}
#acswearing off
on 1:TEXT:*porno*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: porno) 0,4BANNED:10mins (k:#66) }
}
on 1:TEXT:*gay*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: Gay) 0,4BANNED:10mins (k:#50) }
}
on 1:TEXT:*fuck*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: Fuck) 0,4BANNED:10mins (k:#49) }

on 1:TEXT:*Dick*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: Dick) 0,4BANNED:10mins (k:#47) }

on 1:TEXT:*asshole*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: Asshole) 0,4BANNED:10mins (k:#42) }
}
on 1:TEXT:*pussy*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: Pussy) 0,4BANNED:10mins (k:#41) }
}
on 1:TEXT:*bitch*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: bitch) 0,4BANNED:10mins (k:#32) }
}
on 1:TEXT:*suck*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: suck) 0,4BANNED:10mins (k:#31) }
}
on 1:TEXT:*sex*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: sex) 0,4BANNED:10mins (k:#30) }
}
on 1:TEXT:*sucker*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: sucker) 0,4BANNED:10mins (k:#29) }
}
on 1:TEXT:*fucker*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: fucker) 0,4BANNED:10mins (k:#28) }
}
on 1:TEXT:*ass*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: ass) 0,4BANNED:10mins (k:#27) }
}
on 1:TEXT:*porn*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: porn) 0,4BANNED:10mins (k:#26) }
}
on 1:TEXT:*fuck off*:#:{
  if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: fuck off) 0,4BANNED:10mins (k:#25) }
}
#swearing end

Comments

Sign in to comment.
AndrewMiller17   -  Oct 23, 2005

When it comes down to it, it doesn\'t matter what it looks like. This code wont work. \'#swearing end\' Needs to be \'#acswearing end\'. Also \'(k:#27)\' will always say \'(k:#27)\'. It won\'t change as it continues to kick, I suggest finding a Kick Counter which can be found on here for an idea on how to script a Kick Counter for this to actualy work. And as you have seen when it comes to coding it is easier to use .txt files and hashtables but you wouldn\'t be able to get the detailed message as you have put into this snippet. And yet it would have gone alot faster.

 Respond  
Vortex   -  Sep 30, 2005

xDaeMon, yeah. I think I know he\'s already said that. And no I didn\'t take it or anything.

 Respond  
xDaeMoN   -  Sep 29, 2005

Hmm Deathryder082 has a point, it does look almost the same. Just different swear words & colors. Here\'s the link: http://www.hawkee.com/snippet.php?snippet_id=1060

 Respond  
Vortex   -  Sep 29, 2005

DeathRyder, No I didn\'t. I only saw alittle bit of theirs but then my computer shut down so I didnt see his coding.

 Respond  
DeathRyder082   -  Aug 05, 2005

now that im looking through the old snippets here, i found one thats very close to this one thats by `[ac]. Infact the #acswearing is the same too. Did you just take this snippet and make it better?

 Respond  
DeathRyder082   -  Jul 20, 2005

looks good but

on 1:TEXT:fuck:#:{
if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: Fuck) 0,4BANNED:10mins (k:#49) }

on 1:TEXT:fuck off:#:{
if ($me isop $chan) { ban -u600 # $nick 2 | .kick # $nick 0,4Swearing is not allowed here ( $+ $1- $+ , 0,4Matching: fuck off) 0,4BANNED:10mins (k:#25) }
}

to what I understand Fuck would work if the word fuck was used anywhere in the text therefore Fuck off would not be needed since fuck was already established. other than that good job.

 Respond  
DarthReven   -  Jul 19, 2005

a better idea then using so many on text events is to put all the swear words in a text file, a variable, or a hash table for example: on @:text::#: { var %x $0, %swears fuck,shit,cunt,bitch | while (%x) { if ($istok(%swears,$gettok($1-,%x,32),44))) { .ban -ku600 $nick 2 Swear Protection } | dec %x } }

 Respond  
anthalus   -  Jul 19, 2005

Use an .ini file or a hash file to check for the swear words. It will speed processing up quite a bit, and will require much less code work.

 Respond  
Vortex   -  Jul 19, 2005

Lol...Ok henrik. Thank\'s again? anyways. Im still updating it though.

 Respond  
henrikthesexy   -  Jul 19, 2005

i have seen better. but ok

 Respond  
Vortex   -  Jul 19, 2005

Yes, I was just bored when I was making this Snippet, Half Asleep so I could do better and add some more words and things to it. I forgot to add about five more but that\'ll be in Swear Protection v.1. Alot more is to add, Thanks IceMan. And I\'ll give your Advertising Protection a try also. ;)

 Respond  
`IceMan`   -  Jul 19, 2005

Oh forgot to say you can add swear words to the snippet

 Respond  
`IceMan`   -  Jul 19, 2005

Wow ther sure is a lot of typing, well as long as it works. View my advertising protection snippet. You can use a similar or even the same snippet as a swear protection. What I am saying is there is less typing inovoled.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.