Highlight logger

By oobi on Nov 18, 2009

This is just a simple highlight logger, logs any highlight of your nick in a separate window.

on $*:text:/\b/Si:#:{
  tokenize 32 $strip($1-) {
    if ($me isin $1-) {
      window -De @highlights | echo @highlights $timestamp $nick has highlighted you in $chan on $network with the message: $1
    }
  }
}

Comments

Sign in to comment.
rayrayray   -  Jul 02, 2010

Okay i need one for me, because i use 3 nicks can anyone re-wright it and post it me in mail, i would thank you ever so much

 Respond  
Gottesgeschenk   -  Dec 20, 2009

lol using proper spelling and not turning HAWKEE.COM SNIPPET PAGES INTO CHAT ROOMS AND LEAVING THE ACTUAL COMMENTING SPACE FOR ISSUES WITH THE SCRIPT IS MY GAME but to each faggot their own I GUESS

 Respond  
Acclamator   -  Dec 20, 2009

Napa and ghostwriter both need to get the goddamn out of this comment section, both are inferior individuals.

 Respond  
RJosh   -  Dec 07, 2009

lmao a hash tray. nice fordlawnmower

 Respond  
FordLawnmower   -  Dec 07, 2009

Personally I use a timer for this because I like to be different. Using hash tables for this is WAY different. Although I really wouldn't call one record a hash table. It's more like a "hash tray"

 Respond  
Jethro   -  Dec 07, 2009

I agree with Napa182. It all depends upon the situational use of variables or hash tables, and you use them WISELY, not based upon which is faster or slower. That's beside the point.

 Respond  
napa182   -  Dec 07, 2009

lol useing hash just for a flood control is abit over kill to me, but to each their own i guess.

 Respond  
RJosh   -  Dec 07, 2009

Yea, but hash tables are faster :>.

And i just rather them to variables (personal preference).

 Respond  
napa182   -  Dec 07, 2009

if you are worried about the var not unseting when mirc exit's then use the -e switch

set -eu30 $+(%,highlightflood,.,$nick) on

the -e switch unsets the variable when mIRC exits

;x

 Respond  
RJosh   -  Dec 07, 2009

Personally i wouldn't have even used regex at all. At the upmost i would have done something like.

on *:TEXT:$(* $me $+ ? *):*:{
  if (!$window(@HighlightLog)) { window -ez @HighLightLog }
  if (!$hget(HLFlood $+ $network,$wildsite)) { 
    hadd -mz $+(HLFlood,$network) $wildsite 30
    aline -hi20 @HighlightLog Highlight - $nick ( $+ $wildsite $+ ) - $+($iif(#,#,Query),@,$network) - $timestamp $$1-
  }
}

The reason i would use hashtables is because if you EXIT mIRC the variables are left in the VAR tab if the unset isn't triggered. Atleast hash tables are deleted automatically when you EXIT unless you have a method of saving them on exit. If you do you can simple exclude them from your method. That's just my two cents.

 Respond  
SnoooP   -  Dec 07, 2009

omg LOL... Jethro that is class haha

But you should be glad that your code's been napalized and not "ghostwrized."

 Respond  
Jethro   -  Dec 06, 2009

oobi, why did you use the word boundary \b char class in your regex when nothing is there for an exact match? Don't you think that's a waste of regex engine? But you should be glad that your code's been napalized and not "ghostwrized."

 Respond  
Spanky   -  Dec 06, 2009

Okay so how about we all listen and Learn here today, Sometimes Regex Doesnt Strip Right With Backgrouds, Thats why if it doesn't you use both, Just to think i have been away and i missed all this lulz..

 Respond  
SnoooP   -  Dec 05, 2009

Napa fails tbh </3

 Respond  
Ghost-writer   -  Dec 05, 2009

http://www.urbandictionary.com/define.php?term=napa

Correcting a mIRC script to the Nth degree, perfecting it with stupidly complicated methods which are most likely practical, but no-body understands.
Jim: What the hell is this script all about?
Jimbob: Looks like someone has done a napa on it ..

XDDDDDD <333 NAPA FTW.

 Respond  
SnoooP   -  Dec 05, 2009

Napa you just proved that the urban dictionary definition of you is true.. again lol.

 Respond  
oobi   -  Dec 02, 2009

I know it seems silly to strip with regex and use that at the same time but I've noticed a few times that neither are perfect at stripping and it seems to work best stripping colors with both used together, and I really don't know hardly any regex tbh lol

 Respond  
napa182   -  Dec 01, 2009

oobi Said:

I don't see the need to change it any, it works exactly how it's supposed to, thanks for the usesless advice anyways though.

lmao that just made me laugh

well no real need for

tokenize 32 $strip($1-) {

cuz you are striping the color with the regex an if you are going to use regex why not use $regml as well.
you may want to add some sort of flood control to this or be flooded eh..
but all in all keep up the msl scripting.....

on $*:text:/(.+)/Si:#:{
  if ($me isin $regml(1) && !$($+(%,highlightflood,.,$nick),2)) {
    set -u30 $+(%,highlightflood,.,$nick) on
    window -De @highlights
    echo @highlights $timestamp $nick has highlighted you in # on $network with the message: $regml(1)
  }
}

oh and @Ghost-writer
i think you ment

on *:text:$($+(*,$me,*)):#: {

Not

on $*:text:*$( $+ $me $+ )*:#: {

;x

 Respond  
Gottesgeschenk   -  Dec 01, 2009

getting offended over IRC scripting then Q_Qing by giving a most useful script a 1

TROLLED

 Respond  
Ghost-writer   -  Nov 26, 2009

useless? suck my fucking balls and take your 1 like a man!

 Respond  
oobi   -  Nov 26, 2009

I don't see the need to change it any, it works exactly how it's supposed to, thanks for the usesless advice anyways though.

 Respond  
Ghost-writer   -  Nov 19, 2009

on $*:text:/\b/Si:#:{
  tokenize 32 $strip($1-) {

You do not to use that at all, And dont use | in a short code like this, it will miss up comments and slow the snippet down, | are never good, i dont want scroll sidways.

on $*:text:/\b/Si:#:{
  tokenize 32 $strip($1-) {
    if ($me isin $1-) {
      window -De @highlights 
echo @highlights $timestamp $nick has highlighted you in $chan on $network with the message: $1
    }
  }
}

Now if you dont want to stop ALL other text events you could do somthing like

on $*:text:*$( $+ $me $+ )*:#: {
...

That will trigger when somone says your name :).

 Respond  
Cracker200   -  Nov 18, 2009

O_o

 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.