add debugging code for adding messages to a split even if you don't have an internet connection

This commit is contained in:
Rasmus Karlsson 2017-06-17 11:37:45 +02:00
parent 1ecc6ff612
commit 17aa48fd07

View file

@ -207,6 +207,31 @@ void IrcManager::sendMessage(const QString &channelName, const QString &message)
}
this->connectionMutex.unlock();
// DEBUGGING
#if 0
Communi::IrcPrivateMessage msg(this->readConnection.get());
QStringList params{"#pajlada", message};
qDebug() << params;
/*
if (message == "COMIC SANS LOL") {
FontManager::getInstance().currentFontFamily = "Comic Sans MS";
} else if (message == "ARIAL LOL") {
FontManager::getInstance().currentFontFamily = "Arial";
} else if (message == "WINGDINGS LOL") {
FontManager::getInstance().currentFontFamily = "Wingdings";
}
*/
msg.setParameters(params);
msg.setPrefix("pajlada!pajlada@pajlada");
this->privateMessageReceived(&msg);
#endif
}
void IrcManager::joinChannel(const QString &channelName)