X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fircuser.cpp;h=173f99f63bf6f0e159ccfd32d5b8f644b2f57ef8;hb=429a6a571737b19bb60c165874fda0d74dab78da;hp=f8a1e0a956d3dadc9167add6e6af57e06f6f9dc5;hpb=a5dfcc8ecf8b81025d24b3c5c816169e3e030ea4;p=quassel.git diff --git a/src/common/ircuser.cpp b/src/common/ircuser.cpp index f8a1e0a9..173f99f6 100644 --- a/src/common/ircuser.cpp +++ b/src/common/ircuser.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -292,3 +292,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); +}