mIRC Homepage

Nick colors "switch" randomly while chatting

Posted By: eahm

Nick colors "switch" randomly while chatting - 30/07/21 09:11 PM

I have this set:
[cnicks]
n0=$me,7,,,1,1,0,0,0,0
n1=,99,,,1,1,0,1,0,1

I noticed some nicks randomly switch color during a chat, I have to restart mIRC to show the same colors again. Not sure it's a bug or whatever, just wanted Khaled to know about it.

I noticed maybe 3-4 times in months, it happens if I keep mIRC opened enough time.
Posted By: maroon

Re: Nick colors "switch" randomly while chatting - 31/07/21 01:16 AM

I think the color is based on a hash calculation against $address($nick,something), so if the nick identifies after joining the channel, then their address appears to change, and there's a good chance their color would also change.
Posted By: Raccoon

Re: Nick colors "switch" randomly while chatting - 01/08/21 01:55 PM

Eew. I would ask that Khaled consider associating random nick coloring to $ial().id which is a unique value associated to that user/connection for as long as mIRC sees them in at least one channel. If their address changes via `CAP chghost` their $ial().id remains the same. And only changes if the user /quits or /parts all channels in common with you.
Posted By: Raccoon

Re: Nick colors "switch" randomly while chatting - 01/08/21 02:05 PM

I think your issue is actually more related to mIRC discovering a person's user@host only after they speak at least once, because the server you are using does not support `CAP userhost-in-names` and so the colorization is initially based on their nickname only, but not their nickname!user@host. After time goes on and you learn more and more of their user@hosts across multiple channels they share in common with you, the act of parting-and-rejoining the channels, by either you or them, will cause you to see them wearing a different color.

Rather than restarting mIRC, you can use the command `/ialclear` or `/ialclear <nickname>` then rejoin those channels to reset the colors to be based in the user's nickname-only.

If you used `/ialfill <channel>` in all channels you're in, that would populate each chatter's nickname!user@host into your IAL and then rejoining a channel you have in common with multiple users will cause those individuals to retain the nickname!user@host in the IAL cache, giving them different colors.

So, it's a tricky business. Maybe Khaled should let us choose how randomized nickname coloring is hashed. By nickname-only, by nickname!user@host, or by Session ID via $ial().id
Posted By: eahm

Re: Nick colors "switch" randomly while chatting - 04/08/21 04:52 PM

Originally Posted by maroon
I think the color is based on a hash calculation against $address($nick,something), so if the nick identifies after joining the channel, then their address appears to change, and there's a good chance their color would also change.

No nick or address changes, ever. These are people that have been using the same nick and host for years, you can see the conversation for hours then the color randomly switches to a different one.
Posted By: KindOne

Re: Nick colors "switch" randomly while chatting - 04/08/21 11:42 PM

What network/channel? Can we idle in it?
Posted By: Raccoon

Re: Nick colors "switch" randomly while chatting - 05/08/21 09:26 PM

The address always changes. It changes from $null to buttercup@ip.123.21.31.41.verizon.net behind the scenes the first time they speak. The color doesn't update immediately, only after they part and rejoin, or you part and rejoin, or whatnot.
Posted By: eahm

Re: Nick colors "switch" randomly while chatting - 08/08/21 03:15 AM

No dude, I'm telling you, there is one dude that has been using the same vps/znc for 10+ years, at one point, while he's talking, the nick goes from for example green to white, after 1-2hrs of being there even, and it stays white until mIRC restarts then it's green again. znc here too so, no parts and no rejoining.

I noticed with other nicks too, they've had the same host for years.
Posted By: KindOne

Re: Nick colors "switch" randomly while chatting - 13/08/21 07:52 PM

Could custom schemes be causing the issue?

eahm is using "BlackStuffBlue" that was posted here: https://forums.mirc.com/ubbthreads.php/topics/264467

Code
[colors]
n16=BlackStuffBlue,1,6,4,7,2,2,4,2,2,2,2,15,4,7,2,15,2,2,2,4,2,1,15,1,15,14,15,1,1,15,1



I'm using the stock mIRC classic scheme and I cannot replicate it or maybe I've not been in the channel long enough.
Code
[colors]
n0=mIRC Classic,0,6,4,5,2,3,3,3,3,3,3,1,5,7,6,1,3,2,3,5,1,0,1,0,1,14,6,0,0,1,97


It's happening on EFnet, no chghost/vhost/spoof/whatever.

eahm said the bug happened again while I was inside the channel. The channel ops nick was green then turned white on his screen. I did not see any change on mine.

I have had a /debug window opened for a few days and the persons nick!~ident@host has not changed.

We are both using znc.
© 2022 mIRC Discussion Forums