/***************************************************************************
- * 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 *
if(!_channels.contains(channel)) {
_channels.insert(channel);
channel->joinIrcUsers(this);
- // connect(channel, SIGNAL(destroyed()), this, SLOT(channelDestroyed()));
}
}
}
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);
+}