/***************************************************************************
- * Copyright (C) 2005-08 by the Quassel IRC Team *
+ * Copyright (C) 2005-09 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
void ClientBacklogManager::receiveBacklog(BufferId bufferId, MsgId first, MsgId last, int limit, int additional, QVariantList msgs) {
Q_UNUSED(first) Q_UNUSED(last) Q_UNUSED(limit) Q_UNUSED(additional)
- if(msgs.isEmpty())
- return;
-
emit messagesReceived(bufferId, msgs.count());
MessageList msglist;
}
void ClientBacklogManager::dispatchMessages(const MessageList &messages, bool sort) {
+ if(messages.isEmpty())
+ return;
+
MessageList msgs = messages;
clock_t start_t = clock();
Client::messageProcessor()->process(msgs);
clock_t end_t = clock();
- emit messagesProcessed(tr("Processed %1 messages in %2 seconds.").arg(msgs.count()).arg((float)(end_t - start_t) / CLOCKS_PER_SEC));
+ emit messagesProcessed(tr("Processed %1 messages in %2 seconds.").arg(messages.count()).arg((float)(end_t - start_t) / CLOCKS_PER_SEC));
}
void ClientBacklogManager::reset() {