Ignore Script

By Soulkeeper on Jul 09, 2008

Now, before you comment that I didn't need $regex, I know that.

This script was made as a learning tool to help me learn regex, and still get a little bit of entertainment out of it. It's fairly simple to use. Right click someone on the nicklist, click ignore, and let the ignoring begin.

;Regex Ignore Script
;Written By SoulKeeper
;Help & Thanks to [Hercules] and Mercurial

menu nicklist {
  Ignore
  .Ignore: set %ignore $addtok(%ignore,$$1,124)
  .Unignore: set %ignore $remtok(%ignore,$$1,124)
}
on 1:load: set %ignore $chr(225)
on ^1:text:*:#:{
  if ($regex($nick,/( $+ %ignore $+ )/g)) {
    echo $chan $timestamp 4More Nonsense From $nick
    halt
  }
}
on ^1:action:*:#:{
  if ($regex($nick,/( $+ %ignore $+ )/g)) {
    echo $chan $timestamp 4More Nonsense From $nick
    halt
  }
}

Comments

Sign in to comment.
Andrew12   -  Aug 23, 2009

Because of the way /ignore works... it won't always work... that would be one reason to make the script...

 Respond  
ChunkieMonkey   -  Jul 10, 2008

Then why didn\'t he? >>

 Respond  
Eugenio   -  Jul 10, 2008

rofl

 Respond  
napa182   -  Jul 09, 2008

Soulkeeper\'s Introduction

This script was made as a learning tool to help me learn regex, and still get a little bit of entertainment out of it.
and ur point by making a script on the ignore command is not needed is just lame cuz you can use the ignore command to make a script to ignore a user\'s ctcp\'s or P2P\'s and so on without fully ignoring them by useing the diff switches

 Respond  
ChunkieMonkey   -  Jul 09, 2008

Time wasted on the meaning of the script. Making a script on the ignore command is....Not needed to say the least. Considering she/he is trying to learn Regex\'s is ok...But ignore?

 Respond  
napa182   -  Jul 09, 2008

now why would it be time wasted if they are trying to learn regex\'s?

 Respond  
ChunkieMonkey   -  Jul 09, 2008

Oh well, it isn\'t my time that\'s wasted making it >>

 Respond  
Eugenio   -  Jul 09, 2008

rofl @ chunkiemonkey........hes right though

 Respond  
ChunkieMonkey   -  Jul 09, 2008

Umm....

 /ignore nick 
 Respond  
Soulkeeper   -  Jul 09, 2008

So uh, I got bored, and took it from regex just to tokens. Anyone think I should update this?

 Respond  
Eugenio   -  Jul 09, 2008

ROFL yeah I didnt know you all changed shit, ugh now Ive gone crossed eyed :x

mix up ...sorry

 Respond  
guest598594   -  Jul 09, 2008

Well I edited it before I saw Eugenio\'s comment

 Respond  
Typo   -  Jul 09, 2008

Yeah, I totally misunderstood because this was all I saw...
Quote from montaindew

Edit: didn\'t read the second part
But you don\'t need the /g, use /i instead to make it incasesensative
And you don\'t need to backreference it.
Quote from eugenio
Its how he codes, leave him be, tbh thats one of the the main reasons why I dont post on here. I like the way I code and it works so whats the problem -.-\'

Since I never saw the original comment that mountaindew said it looked as if you were commenting on his regex comment.

Thats why I dont remove stuff I say if anyone else has commented on it, even if it was wrong. It just leads to confusion like above.

 Respond  
Eugenio   -  Jul 09, 2008

erm typo wtf I didnt mention regex, and I didnt say dew\'s comment was bad or wrong just leave him alone coz it can be annoying when ppl tell you how to code or tell you to code in a diff. way.

 Respond  
Typo   -  Jul 09, 2008

OH....LMAO

I didn\'t know you changed your comment entirely.

Well nm eugenio, your great!

lol

 Respond  
guest598594   -  Jul 09, 2008

No, Eugenio didn\'t do anything wrong, I was just being retarded and didn\'t read the intro right, and I\'m guessing he was commenting on my original comment.

Image

 Respond  
Typo   -  Jul 09, 2008

Eugenio, since you aren\'t familiar enough with regex to even write the most basic of one I suggest you don\'t make comments on a comment made about regex.

Mountaindews suggestions were perfectly valid as the OP\'s use of the regex wasn\'t right. The user said in the introduction that he is trying to learn regex so not telling him the proper way to write his regex would be way ruder than mentioning what he did wrong.

I myself accidently included back refrences too until it was explained to me that I either didnt need the parentheses at all or could include a ?: like \(?:a|b)\ to tell it the parentheses are not to be used as a back reference or included in a $regml call.

Anyhow, a lot of us post our codes so that we can get input on how we can improve or what we did wrong, not just to share them or show off our skills.
If thats not why you post or don\'t post than thats your perrogitive but don\'t assume that everyone else feals the same exact way you do.

 Respond  
napa182   -  Jul 09, 2008

you can just do /ignore nick
or at lest use it in the script
also all they have to do is change nicks so why not add addy along with it

 Respond  
Eugenio   -  Jul 09, 2008

Its how he codes, leave him be, tbh thats one of the the main reasons why I dont post on here. I like the way I code and it works so whats the problem -.-\'

 Respond  
guest598594   -  Jul 09, 2008

Edit: didn\'t read the second part

But you don\'t need the /g, use /i instead to make it incasesensative

And you don\'t need to backreference it.

 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.