I hate c++ and everything it stands for

This commit is contained in:
2018-01-01 22:29:21 +01:00
parent 5a26d5f17f
commit 3fc4ddea56
12 changed files with 276 additions and 473 deletions
+6 -1
View File
@@ -10,7 +10,6 @@
#include "singletons/settingsmanager.hpp"
#include "singletons/windowmanager.hpp"
#include "twitch/twitchmessagebuilder.hpp"
#include "twitch/twitchparsemessage.hpp"
#include "twitch/twitchuser.hpp"
#include "util/urlfetch.hpp"
@@ -67,6 +66,12 @@ IrcManager::IrcManager(ChannelManager &_channelManager, ResourceManager &_resour
&IrcManager::onConnected);
QObject::connect(this->readConnection.get(), &Communi::IrcConnection::disconnected, this,
&IrcManager::onDisconnected);
// join and part chats on event
ChannelManager::getInstance().ircJoin.connect(
[this](const QString &name) { this->joinChannel(name); });
ChannelManager::getInstance().ircPart.connect(
[this](const QString &name) { this->partChannel(name); });
}
IrcManager &IrcManager::getInstance()