mIRC Home    About    Download    Register    News    Help

Print Thread
Fixed this code please, thank you all! #267299 12/05/20 03:18 PM
Joined: May 2020
Posts: 19
K
Kendy Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: May 2020
Posts: 19
I want to change from  «D6uLDv8 @ Corrupt-Net >> (with color) << nick @ networkname >> to (nick @ networkname) and there is no color, just how is black. Hope you could help rewrite that code to your liking?
For example, in a room chat, the nick talked to the room and displayed in the room as follows:
 «Robert @ Corrupt-Net» hello everybody
 << Hunken @ TurboIRC >> hello Robert, how are you?

I want it to look like this (nick @ networkname has no color):
(Robert @ Corrupt-Net) hello everybody
(Hunken @ TurboIRC) hello Robert, how are you?

I use the code:
on 1*:text:*:#misfits: {
if $nick == Hex { msg #IRCRelay $1- }
else {
msg #IRCRelay < $+  $+ $nick $+  $+ @ $+ $network $+ > $1- }
}

Re: Fixed this code please, thank you all! [Re: Kendy] #267303 13/05/20 08:34 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
That code doesn't seem to have any colour in it.

Are you saying the server allows people to use colour codes in their nickname?

If so, just wrap $strip() around the $nick:

Code
msg #IRCRElay < $+ $strip($nick) $+ @ $+ $network $+ > $1- }