- for(int i = 0; i < modes.count(); i++) {
- _userModes.remove(modes[i]);
- }
- emit userModesRemoved(modes);
+void IrcUser::removeUserModes(const QString &modes)
+{
+ if (modes.isEmpty())
+ return;
+
+ for (int i = 0; i < modes.count(); i++) {
+ _userModes.remove(modes[i]);
+ }
+ SYNC(ARG(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);