diff options
author | Benjamin Jemlich <pcgod@users.sourceforge.net> | 2009-11-24 22:49:40 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-11-26 00:08:26 +0300 |
commit | 1d07f8aa7977cb71d46bf0448f1db96c87fd01b8 (patch) | |
tree | 1b6925419bef4e10d40d8991e8de09779ab392ab /src/murmur/RPC.cpp | |
parent | 23ada5945f53d8856a19097b0310796fb4c2ceb1 (diff) |
Store the comment in the user object if it's changed via RPC
Diffstat (limited to 'src/murmur/RPC.cpp')
-rw-r--r-- | src/murmur/RPC.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |