Add system messages upon connecting/disconnecting

This commit is contained in:
Rasmus Karlsson
2017-12-16 18:11:36 +01:00
parent 3cc19bd4ce
commit 87203c1120
6 changed files with 70 additions and 0 deletions
+10
View File
@@ -136,4 +136,14 @@ WindowManager &ChannelManager::getWindowManager()
return this->windowManager;
}
void ChannelManager::doOnAll(std::function<void(std::shared_ptr<TwitchChannel>)> func)
{
for (const auto &channel : this->twitchChannels) {
func(std::get<0>(channel));
}
func(this->whispersChannel);
func(this->mentionsChannel);
}
} // namespace chatterino