X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircuser.cpp;h=463df85e6db0ffb2c21ce373a44f27a02a4b79bb;hp=15220f7681b45b71636b7ddd7fde1c26beeac025;hb=b06a827aea68b050bf23c37e0162189a94595ee9;hpb=dd711790dddee81442e2138b3917764dac39c487 diff --git a/src/common/ircuser.cpp b/src/common/ircuser.cpp index 15220f76..463df85e 100644 --- a/src/common/ircuser.cpp +++ b/src/common/ircuser.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -146,6 +146,15 @@ void IrcUser::setRealName(const QString &realName) } +void IrcUser::setAccount(const QString &account) +{ + if (_account != account) { + _account = account; + SYNC(ARG(account)) + } +} + + void IrcUser::setAway(const bool &away) { if (away != _away) {