X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fircevent.h;h=5b93d61e7af5ab62d5f93c0205569205a207ac08;hb=812c2b2dbdf370e6717d81cffca9de3744a94620;hp=e8e21acb2d4db2e0953156e7baedd2e6ef4c7c98;hpb=32023e27e875eede980d7323c1d05b5d4cc795d8;p=quassel.git diff --git a/src/common/ircevent.h b/src/common/ircevent.h index e8e21acb..5b93d61e 100644 --- a/src/common/ircevent.h +++ b/src/common/ircevent.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2010 by the Quassel Project * + * Copyright (C) 2005-2012 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -85,10 +85,14 @@ private: class IrcEventRawMessage : public IrcEvent { public: - explicit IrcEventRawMessage(EventManager::EventType type, Network *network, const QString &prefix, const QString &target, const QByteArray &rawMessage) + explicit inline IrcEventRawMessage(EventManager::EventType type, Network *network, + const QByteArray &rawMessage, const QString &prefix, const QString &target, + const QDateTime ×tamp = QDateTime()) : IrcEvent(type, network, prefix, QStringList() << target), _rawMessage(rawMessage) - {} + { + setTimestamp(timestamp); + } inline QString target() const { return params().at(0); } inline void setTarget(const QString &target) { setParams(QStringList() << target); }