/***************************************************************************
- * Copyright (C) 2005-2015 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
setStandardCtcp(_coreSession->networkConfig()->standardCtcp());
- connect(_coreSession->networkConfig(), SIGNAL(standardCtcpSet(bool)), this, SLOT(setStandardCtcp(bool)));
- connect(this, SIGNAL(newEvent(Event *)), _coreSession->eventManager(), SLOT(postEvent(Event *)));
+ connect(_coreSession->networkConfig(), &NetworkConfig::standardCtcpSet, this, &CtcpParser::setStandardCtcp);
+ connect(this, &CtcpParser::newEvent, _coreSession->eventManager(), &EventManager::postEvent);
}
void CtcpParser::setStandardCtcp(bool enabled)
{
- QByteArray XQUOTE = QByteArray("\134");
+ QByteArray XQUOTE = QByteArray(R"(\)");
if (enabled)
_ctcpXDelimDequoteHash[XQUOTE + XQUOTE] = XQUOTE;
else
flags |= Message::StatusMsg;
}
+ // For self-messages, pass the flag on to the message, too
+ if (e->testFlag(EventManager::Self)) {
+ flags |= Message::Self;
+ }
+
if (coreSession()->networkConfig()->standardCtcp())
parseStandard(e, messagetype, dequotedMessage, ctcptype, flags);
else