mIRC Home    About    Download    Register    News    Help

Print Thread
Nick colors "switch" randomly while chatting #269252 30/07/21 09:11 PM
Joined: May 2018
Posts: 144
eahm Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: May 2018
Posts: 144
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.

Re: Nick colors "switch" randomly while chatting [Re: eahm] #269253 31/07/21 01:16 AM
Joined: Jan 2004
Posts: 1,617
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,617
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.

Re: Nick colors "switch" randomly while chatting [Re: maroon] #269255 01/08/21 01:55 PM
Joined: Feb 2003
Posts: 2,782
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,782
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.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: Nick colors "switch" randomly while chatting [Re: eahm] #269256 01/08/21 02:05 PM
Joined: Feb 2003
Posts: 2,782
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,782
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


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: Nick colors "switch" randomly while chatting [Re: maroon] #269261 04/08/21 04:52 PM
Joined: May 2018
Posts: 144
eahm Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: May 2018
Posts: 144
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.

Re: Nick colors "switch" randomly while chatting [Re: eahm] #269262 04/08/21 11:42 PM
Joined: Feb 2011
Posts: 385
K
KindOne Offline
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 385
What network/channel? Can we idle in it?


irc.swiftirc.net #msl (mIRC Scripting Language)
Re: Nick colors "switch" randomly while chatting [Re: eahm] #269264 05/08/21 09:26 PM
Joined: Feb 2003
Posts: 2,782
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,782
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.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: Nick colors "switch" randomly while chatting [Re: Raccoon] #269266 08/08/21 03:15 AM
Joined: May 2018
Posts: 144
eahm Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: May 2018
Posts: 144
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.

Re: Nick colors "switch" randomly while chatting [Re: eahm] #269278 13/08/21 07:52 PM
Joined: Feb 2011
Posts: 385
K
KindOne Offline
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 385
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.


irc.swiftirc.net #msl (mIRC Scripting Language)