manually send req, this ensures we send it before JOIN

Fixes #1229
This commit is contained in:
Rasmus Karlsson
2019-08-22 22:04:02 +02:00
parent 0c6760d0ca
commit ab0d70300c
4 changed files with 14 additions and 12 deletions
+4 -4
View File
@@ -36,9 +36,9 @@ AbstractIrcServer::AbstractIrcServer()
QObject::connect(this->readConnection_.get(),
&Communi::IrcConnection::privateMessageReceived,
[this](auto msg) { this->privateMessageReceived(msg); });
QObject::connect(this->readConnection_.get(),
&Communi::IrcConnection::connected,
[this] { this->onConnected(); });
QObject::connect(
this->readConnection_.get(), &Communi::IrcConnection::connected,
[this] { this->onConnected(this->readConnection_.get()); });
QObject::connect(this->readConnection_.get(),
&Communi::IrcConnection::disconnected,
[this] { this->onDisconnected(); });
@@ -227,7 +227,7 @@ std::shared_ptr<Channel> AbstractIrcServer::getChannelOrEmpty(
return Channel::getEmpty();
}
void AbstractIrcServer::onConnected()
void AbstractIrcServer::onConnected(IrcConnection *connection)
{
std::lock_guard<std::mutex> lock(this->channelMutex);