X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fircuser.cpp;h=463df85e6db0ffb2c21ce373a44f27a02a4b79bb;hb=61aac1868f15babb7086d8bc6bbcff530346f438;hp=15220f7681b45b71636b7ddd7fde1c26beeac025;hpb=4aea5769f4c155234394957aa55360f111c12cbb;p=quassel.git 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) {