channels now PART when they are destroyed

This commit is contained in:
fourtf
2018-04-21 00:40:17 +02:00
parent f571a336e0
commit f58ee01cf5
9 changed files with 48 additions and 24 deletions
+3 -3
View File
@@ -81,9 +81,9 @@ void TwitchServer::privateMessageReceived(IrcPrivateMessage *message)
}
this->onPrivateMessage.invoke(message);
auto chan = TwitchServer::getInstance().getChannel(channelName);
auto chan = TwitchServer::getInstance().getChannelOrEmpty(channelName);
if (!chan) {
if (chan->isEmpty()) {
return;
}
@@ -169,7 +169,7 @@ void TwitchServer::forEachChannelAndSpecialChannels(std::function<void(ChannelPt
func(this->mentionsChannel);
}
QString TwitchServer::CleanChannelName(const QString &dirtyChannelName)
QString TwitchServer::cleanChannelName(const QString &dirtyChannelName)
{
return dirtyChannelName.toLower();
}