X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircuser.cpp;h=fa2069899a1c6344531c73352d4abfbbd8cff73f;hp=8acb67826215bacba205c61001edc0a6fa1cd571;hb=e89cfe68c0b4d117ce79d0d38fcc085de77a3083;hpb=f824db0e31b54969e0b7fa0b5405b1e9173d482c diff --git a/src/common/ircuser.cpp b/src/common/ircuser.cpp index 8acb6782..fa206989 100644 --- a/src/common/ircuser.cpp +++ b/src/common/ircuser.cpp @@ -171,6 +171,7 @@ void IrcUser::setLastAwayMessage(const int &lastAwayMessage) { } void IrcUser::setHost(const QString &host) { + so_sync(so_arg_cast(host)); if(!host.isEmpty() && _host != host) { _host = host; emit hostSet(host); @@ -292,3 +293,13 @@ void IrcUser::removeUserModes(const QString &modes) { } emit userModesRemoved(modes); } + +void IrcUser::setLastChannelActivity(BufferId buffer, const QDateTime &time) { + _lastActivity[buffer] = time; + emit lastChannelActivityUpdated(buffer, time); +} + +void IrcUser::setLastSpokenTo(BufferId buffer, const QDateTime &time) { + _lastSpokenTo[buffer] = time; + emit lastSpokenToUpdated(buffer, time); +}