mIRC Home    About    Download    Register    News    Help

Print Thread
Different color on cerrtain nick #232381 01/06/11 07:21 PM
Joined: Jun 2011
Posts: 1
B
Bjornv Offline OP
Mostly harmless
OP Offline
Mostly harmless
B
Joined: Jun 2011
Posts: 1
Hi,

Often, I'm in a very active IRC channel where I'm especially interested in what one person has to say.

In mIRC, there is an option called "nick color", which changes the color of someone's nickname when that person talks. What I would like to have is that instead of only a nickname color change, a whole line color change, as with normal highlights.

Is it possible to highlight lines a certain person says?

Thanks

Last edited by Bjornv; 01/06/11 08:10 PM.
Re: Different color on cerrtain nick [Re: Bjornv] #232383 01/06/11 07:45 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Try this (untested):

Code:
on ^*:text:*:#: {
  if ($nick == SOMENICK) { echo -tlbmf $chan 00,12 $+ $strip($1-) | haltdef }
}


That will remove any color/bold/etc that the person uses, but guarantees that the line color will always be there. If you want to let the person use color/bold/etc at the possible cost of losing the line color partway through the line, then you can use this instead:

Code:
on ^*:text:*:#: {
  if ($nick == SOMENICK) { echo -tlbmf $chan 00,12 $+ $1- | haltdef }
}



Replace SOMENICK with the person's nick, and adjust the color codes to whatever you want. You can also adjust the echo switches if you don't need/want everything that is there.


Invision Support
#Invision on irc.irchighway.net
Re: Different color on cerrtain nick [Re: Riamus2] #232389 02/06/11 04:33 AM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Just for fun,

Code:
/writeini colors.ini list <nickname> <color1-16>

colors.ini
[list]
Nickname1=3
Nickname2=4


Code:
on ^*:text:*:#: {
  if ($readini(colors.ini,list,$nick)) { echo -tlbmf $chan $+(,$ifmatch) $+ ,12 $+ $1- | haltdef }
}


This will allow you to set different colors for different nicknames. The colors are based off of the mirc 16 colors. The "12" is the background color that you can change as well.