Fixed excessive sending of user update packets.
the funny inverted if condition
This commit is contained in:
parent
d426df91f0
commit
09d5bfef82
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue