this commit is too big

This commit is contained in:
fourtf
2018-08-02 14:23:27 +02:00
parent 3b3c5d8d75
commit c2e2dfb577
186 changed files with 3626 additions and 2656 deletions
+2 -5
View File
@@ -54,12 +54,9 @@ void AbstractIrcServer::connect()
std::lock_guard<std::mutex> lock2(this->channelMutex);
for (std::weak_ptr<Channel> &weak : this->channels.values()) {
std::shared_ptr<Channel> chan = weak.lock();
if (!chan) {
continue;
if (auto channel = std::shared_ptr<Channel>(weak.lock())) {
this->readConnection_->sendRaw("JOIN #" + channel->getName());
}
this->readConnection_->sendRaw("JOIN #" + chan->name);
}
this->writeConnection_->open();