From 17aa48fd07fe5d63cd020cde1c2fdac6235a5093 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sat, 17 Jun 2017 11:37:45 +0200 Subject: [PATCH] add debugging code for adding messages to a split even if you don't have an internet connection --- src/ircmanager.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/ircmanager.cpp b/src/ircmanager.cpp index d0446879e..5c17d524d 100644 --- a/src/ircmanager.cpp +++ b/src/ircmanager.cpp @@ -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)