mIRC Home    About    Download    Register    News    Help

Print Thread
#262678 11/03/18 08:34 PM
Joined: Mar 2018
Posts: 1
M
mra7med Offline OP
Mostly harmless
OP Offline
Mostly harmless
M
Joined: Mar 2018
Posts: 1
Hi!
Can anyone please help me?
I want mIRC shows men in blue and women in red color
Here is an example

[juin369!juin369@masked-e3i.0db.101.105.IP] * 25 M France
In the full name the letter M stands for Male

and for women..

MARIEE!MARIEE@masked-bj7.h7b.249.41.IP] * 34 F Autre-pays
the letter F stands for Female

So is there anyone please can make me a nick color script

Sorry for my bad English

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
I'm not sure where this is coming from. Is this twitch? If this line is contained in $1- where each number is the Nth "word", it looks like M/F is the 5th "word", so if that's true, it would be:

/cline -m $iif($5 == M,2,4) #Name_of_the_channel $mid($gettok($1,1,33),2)

This assumes the $5 5th word is either M or F, and assumes blue is 2 and red is 4. If the word is something else besides M or F it takes 4 too.

The last part needs to parse the $1 first word to take everything to the left of the "!" beginning with the 2nd character.


Link Copied to Clipboard