Store the comment in the user object if it's changed via RPC

This commit is contained in:
Benjamin Jemlich 2009-11-24 20:49:40 +01:00 committed by Thorvald Natvig
parent 23ada5945f
commit 1d07f8aa79

View File

@ -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;