Swear Protection

By aeros on Jun 19, 2005

Its a simple swear protection. You can edit it by adding more words thats are considered a bad word to you. .. ENJOY!

Its my first script that I uploaded, so bare wit me:D

on *:text:*:#: {
  if (($istok($1-,FUCK,32) == $true) || ($istok($1-,BITCH,32) == $true)) {
    ban $chan $nick
    kick $chan $nick Don't swear here!
  }
}

Comments

Sign in to comment.
guest598594   -  Oct 01, 2007

lol how was it updated before it was added??

 Respond  
napa182   -  Oct 01, 2007

lmao did anyone notice this...
[b]Date Added Jun 19, 2005
Last Updated Dec 06, 2004[/b]
thats cracks me up..

 Respond  
RubixCube   -  Oct 01, 2007

Yes, I didn\'t really error check the code. That was made up in quite a rush in posting my comment. And yes, it isn\'t that much more useful than your previous code but I just added. Sorry for the lack of efficiency in my code.

  • RubixCube
 Respond  
guest598594   -  Oct 01, 2007

that aint much more useful then what i put :/

also, you used 32 as a delimeter when you should be using 44,

and banning $nick doesnt really help at all, they can just change nicks

try this:

alias swearon set %status on
alias swearoff unset %status
alias addswear set %swears $addtok(%swears,$$1,32)
alias remswear set %swears $remtok(%swears,$$1,1,32)
on @*:text:*:#:{
  if (%status && $istok(%swears,$1-,32)) {
     ban -k $chan $address($nick,2) Swearing is Prohibited.
  }
}

usage:

/swearon (turns it on)
/swearoff (turns it off)
/addswear (adds swear to list)
/remswear (removes swear from list)

 Respond  
RubixCube   -  Oct 01, 2007

Cons:

  • Only use of two words
  • Doesn\'t check if you are an op
  • Cannot add more words
  • Some scripting mishaps

Here is the updated code (with a \'mini-tutorial\' on what I changed):

on @*:TEXT:*:#:{ 
  ; the above line is not much different from your first, the @ checks if you are an op in the channel
  var %swear fuck,bitch
  ; swear words that are checked are in this local variable (can be added or removed)
  if ($istok($1-,%swear,32)) { 
   ; checks if any of the words are in the text
   ban -k # $nick Swearing is prohibited. 
   ; ban/kick\'s the nick w/ above msg
  }
}

Try that w/o the ; comments. They were just used to help you understand. And if you already knew about what I\'m talking about, then just ignore them.

 Respond  
guest598594   -  Oct 01, 2007
on *:text:*:#:{
  if ($me isop $chan && $istok($1-,fuck bitch,32)) {
    ban -k $chan $address($nick,2) Don\'t Swear here!
  }
}
 Respond  
Status_online   -  Jun 20, 2005

I guess it is better the \'swear words\' are listed in a txt file (swear.txt or something) so that we can add more badwords there :)

 Respond  
DarthReven   -  Jun 20, 2005

its rather lacking though you did use the token identifiers well. add change \"on :text::#: {\" to \"on @:text::#: {\" to check if you are an op or \" on :text:*:#: { if ($me isop $chan) {\" You might also consider making a way to add any swear words to a list so they can have their own custom list of words that they want to protect against. And to Corne yes ban -k $chan $nick is better but banning just the nick won\'t do you much good in the long run use .ban -k $chan $nick .

 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.