Highlight notifier

By Lindrian on Aug 23, 2007

Yes, I know this sort of snippets has been done a few million times, but I came up with the idea to use the original mirc.ini file as a source! Basically, you add your nicknames to the mirc highlight list, and thats it!
This script will show the prefix of the user in the channel you were highlighted in (If it was a channel), else no prefix. It will say if it was a query or channel window, and which window aswell. It will also say what network it was on, incase you scoop over more then 1 network on your client.
Example of the output:
13:38:18 Lindrian` highlighted you on DaIRC at #testing: Hey Lindrian, this is a test.

Enjoy!

on *:TEXT:*:*: {
  var %t = $ini(mirc.ini,highlight,0)
  while (%t) {
    if ($gettok($readini(mirc.ini,highlight,$+(n,%t)),2,34) isin $1-) || ($me isin $1-) && (!%delay) {
      if ($target ischan) {
        if ($active == $chan) || ($active == $target) { return }
      }
      elseif ($target !ischan) {
        if ($active == $nick) { return }
      }      
      var %c = $cid
      echo -at $iif($istok(~ & @ % +,$left($nick($chan,$nick).pnick,1),32),$left($nick($chan,$nick).pnick,1) $+ $nick,$nick) highlighted $iif($cid != $activecid,you on $iif($scid(%c).network,$v1,$scid(%c).server),you) $iif($target ischan,at $chan $+ :,(Query window $qt($target) $+ ):) $1-  
      set %delay 1
    }
    dec %t
  }
  unset %delay
}
on *:ACTION:*:*: {
  var %t = $ini(mirc.ini,highlight,0)
  while (%t) {
    if ($gettok($readini(mirc.ini,highlight,$+(n,%t)),2,34) isin $1-) || ($me isin $1-) && (!%delay) {
      if ($target ischan) {
        if ($active == $chan) || ($active == $target) { return }
      }
      elseif ($target !ischan) {
        if ($active == $nick) { return }
      }      
      var %c = $cid
      echo -at $iif($istok(~ & @ % +,$left($nick($chan,$nick).pnick,1),32),$left($nick($chan,$nick).pnick,1) $+ $nick,$nick) highlighted $iif($cid != $activecid,you on $iif($scid(%c).network,$v1,$scid(%c).server),you) $iif($target ischan,at $chan $+ :,(Query window $qt($target) $+ ):) $1-     
      set %delay 1
    }
    dec %t
  }
  unset %delay
}

Comments

Sign in to comment.
PraetorianGuard   -  Jul 19, 2011

Possible for it to add all highlights into a new window as well?. So that when someone highlights you it get copied to a new window.

 Respond  
Hagarrd   -  Jun 13, 2009

Alt + o -> Display in 6.35

 Respond  
RagBot   -  Jun 30, 2008

if mIRC supports it then it will highlight , the star in the code is everything

on *:TEXT:*:*: {

first star: all levels
second star: all text
third star: all windows
i think that\'s what it means ^

Good word too! 9/10
one question: in Alt+O -> IRC -> Highlights
i can\'t find the Highlights part

 Respond  
Lindrian   -  Aug 24, 2007

You don\'t get highlighted when reciving a \"notice\" nor a \"memo\" :P.
Or do you?
You got me confused there buddy XD.

 Respond  
kerstt   -  Aug 24, 2007

and memos:P

 Respond  
kerstt   -  Aug 24, 2007

what about notices? :)

 Respond  
Lindrian   -  Aug 24, 2007

I dont really think thats needed buddy.
Alt + o -> IRC -> Highlight
Add as many nicks you want there, with flashing, highlight color and what so ever!

 Respond  
Ghost-lit Warder   -  Aug 23, 2007

The coding is wonderful and it works fine. Could you perhaps make an option to add a nick? Such as:

alias addhighlight {
writeini -n mirc.ini highlight n $1-
}

 Respond  
Lindrian   -  Aug 23, 2007

Ugh, someone has to have something to say =X

 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.