X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fctcpparser.cpp;h=9b93b8441c8a987d8b336c9a50940367cff3bd17;hb=784fd31562f927647f3509fcb3fd9b463a4adc63;hp=dc8ceff09953e846bd6850001755c96fbeb72226;hpb=edc55b1f86cf613a332eeeb5d85537a54120dfa5;p=quassel.git diff --git a/src/core/ctcpparser.cpp b/src/core/ctcpparser.cpp index dc8ceff0..9b93b844 100644 --- a/src/core/ctcpparser.cpp +++ b/src/core/ctcpparser.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2019 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -66,6 +66,9 @@ void CtcpParser::displayMsg(NetworkEvent* event, return; MessageEvent* msgEvent = new MessageEvent(msgType, event->network(), std::move(msg), std::move(sender), std::move(target), msgFlags, event->timestamp()); + if (event->testFlag(EventManager::Self)) { + msgEvent->setFlag(EventManager::Self); + } emit newEvent(msgEvent); } @@ -236,6 +239,9 @@ void CtcpParser::parseSimple(IrcEventRawMessage* e, ctcpparam, e->timestamp(), uuid); + if (e->testFlag(EventManager::Self)) { + event->setFlag(EventManager::Self); + } emit newEvent(event); CtcpEvent* flushEvent = new CtcpEvent(EventManager::CtcpEventFlush, e->network(), @@ -313,6 +319,9 @@ void CtcpParser::parseStandard(IrcEventRawMessage* e, ctcpparam, e->timestamp(), uuid); + if (e->testFlag(EventManager::Self)) { + event->setFlag(EventManager::Self); + } ctcpEvents << event; } }