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
}
}
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
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.
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.