Added automatic streamer mode detection to Linux (#2316)

This commit is contained in:
Paweł
2021-01-09 22:14:25 +01:00
committed by GitHub
parent b3e01a40d7
commit fca62f7c1d
7 changed files with 104 additions and 47 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ void AbstractIrcServer::open(ConnectionType type)
}
}
void AbstractIrcServer::addGlobalSystemMessage(QString messageText)
void AbstractIrcServer::addGlobalSystemMessage(const QString &messageText)
{
std::lock_guard<std::mutex> lock(this->channelMutex);
+2 -2
View File
@@ -43,6 +43,8 @@ public:
void addFakeMessage(const QString &data);
void addGlobalSystemMessage(const QString &messageText);
// iteration
void forEachChannel(std::function<void(ChannelPtr)> func);
@@ -78,8 +80,6 @@ protected:
void open(ConnectionType type);
void addGlobalSystemMessage(QString messageText);
QMap<QString, std::weak_ptr<Channel>> channels;
std::mutex channelMutex;