Fixed excessive sending of user update packets.

the funny inverted if condition
This commit is contained in:
flash 2024-05-24 13:19:01 +00:00
parent d426df91f0
commit 09d5bfef82

View file

@ -197,7 +197,7 @@ namespace SharpChat {
hasChanged = true;
}
if(colour.HasValue && user.Colour.Equals(colour.Value)) {
if(colour.HasValue && !user.Colour.Equals(colour.Value)) {
user.Colour = colour.Value;
hasChanged = true;
}
@ -222,7 +222,7 @@ namespace SharpChat {
hasChanged = true;
}
if(isSuper.HasValue) {
if(isSuper.HasValue && user.IsSuper != isSuper) {
user.IsSuper = isSuper.Value;
hasChanged = true;
}