Cleanup allowing for tags to be available at later points, adds TAGMSG
[quassel.git] / src / core / keyevent.h
index 1985a94..c1c6cc2 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2013-2018 by the Quassel Project                        *
+ *   Copyright (C) 2013-2019 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -36,12 +36,13 @@ public:
 
     explicit KeyEvent(EventManager::EventType type,
                       Network* network,
-                      const QString& prefix,
+                      QHash<IrcTagKey, QString> tags,
+                      QString prefix,
                       QString target,
                       ExchangeType exchangeType,
                       QByteArray key,
                       const QDateTime& timestamp = QDateTime())
-        : IrcEvent(type, network, prefix)
+        : IrcEvent(type, network, std::move(tags), std::move(prefix))
         , _exchangeType(exchangeType)
         , _target(std::move(target))
         , _key(std::move(key))