Jump to content

Script Help ( Oa Chat )


Guest mythicaldeath

Recommended Posts

Guest mythicaldeath

I'm trying to make a simple thing for my script, I want it to Ignore someone when they say a word that offends me for example porn, use that for example. the script would put the person on ignore and send a msg to chat saying something like you're now ignored {reason} this is what i have so far

 

on *:TEXT:*porn*:#:/msg $chan Type something

 

i asked someone else about it and they said

 

"you just need to make an auser command that sets them to ingore then have this code > on ^ignore:TEXT:*:#: { haltdef }"

Link to comment
Share on other sites

Guest X-Fusion

Why auser it? That's way to complicated

on *:TEXT:porn*:*:{
ignore  -pcwu120 $address($nick,1)
msg $chan $nick is now ignored for saying the word porn. $nick is a very bad person!
}

Something like that, it's off the top of my head and you may have to tinker with it. The -p and -c switches are identifier types; where -p means private messages are ignored and -c means they're ignored in the channel. The -w switch means they're ignored on all networks, and the -u120 switch is the time to remove them, in seconds. You can remove either of the last two if you'd like.

Link to comment
Share on other sites

Guest X-Fusion

Well, I only made it pick up the word if it was by itself because you didn't say you wanted to pick it up in the sentence.

on *:TEXT:*porn*:*:{
  ignore  -pcw $address($nick,1)
  msg $chan $nick is now ignored for saying the word porn. $nick is a very bad person!
}

I removed the timer aswell, as that was probably the source of it lifting the ignore.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...