X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fircuser.cpp;h=9cb2dfa0e9722b28d706bc130687b490b3cec162;hb=f6781dc095957d65e8fc1683fda1c5a5b9cbedbb;hp=ab773d9ec9cd50a76576ac5e35b4765d17ecf059;hpb=c6fc5ae878a4f92b658c3da2861bcc7da9c2594f;p=quassel.git diff --git a/src/common/ircuser.cpp b/src/common/ircuser.cpp index ab773d9e..9cb2dfa0 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 * @@ -218,7 +218,6 @@ void IrcUser::joinChannel(IrcChannel *channel) { if(!_channels.contains(channel)) { _channels.insert(channel); channel->joinIrcUsers(this); - // connect(channel, SIGNAL(destroyed()), this, SLOT(channelDestroyed())); } } @@ -293,3 +292,14 @@ 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; + qDebug() << "last spoken to" << nick() << buffer << time; + emit lastSpokenToUpdated(buffer, time); +}