mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Store the comment in the user object if it's changed via RPC
This commit is contained in:
parent
23ada5945f
commit
1d07f8aa79
@ -58,7 +58,7 @@ void Server::setUserState(User *pUser, Channel *cChannel, bool mute, bool deaf,
|
||||
changed = true;
|
||||
mpus.set_suppress(suppressed);
|
||||
}
|
||||
if (! comment.isNull() && comment != pUser->qsComment) {
|
||||
if (comment != pUser->qsComment) {
|
||||
changed = true;
|
||||
mpus.set_comment(u8(comment));
|
||||
if (pUser->iId >= 0) {
|
||||
@ -71,6 +71,7 @@ void Server::setUserState(User *pUser, Channel *cChannel, bool mute, bool deaf,
|
||||
pUser->bDeaf = deaf;
|
||||
pUser->bMute = mute;
|
||||
pUser->bSuppress = suppressed;
|
||||
pUser->qsComment = comment;
|
||||
|
||||
if (cChannel != pUser->cChannel) {
|
||||
changed = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user