From 1d07f8aa7977cb71d46bf0448f1db96c87fd01b8 Mon Sep 17 00:00:00 2001 From: Benjamin Jemlich Date: Tue, 24 Nov 2009 20:49:40 +0100 Subject: [PATCH] Store the comment in the user object if it's changed via RPC --- src/murmur/RPC.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/murmur/RPC.cpp b/src/murmur/RPC.cpp index 99063dc6b..5ffeb3955 100644 --- a/src/murmur/RPC.cpp +++ b/src/murmur/RPC.cpp @@ -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;