Modify pubsub functions to follow the Chatterino function style

This commit is contained in:
Rasmus Karlsson
2018-04-28 16:07:18 +02:00
parent 0f22d9d002
commit 01b2230bcf
6 changed files with 86 additions and 86 deletions
+3 -3
View File
@@ -152,14 +152,14 @@ void Application::initialize()
util::postToThread([chan, msg] { chan->addMessage(msg); });
});
this->twitch.pubsub->Start();
this->twitch.pubsub->start();
auto RequestModerationActions = [=]() {
this->twitch.pubsub->UnlistenAllModerationActions();
this->twitch.pubsub->unlistenAllModerationActions();
// TODO(pajlada): Unlisten to all authed topics instead of only moderation topics
// this->twitch.pubsub->UnlistenAllAuthedTopics();
this->twitch.pubsub->ListenToWhispers(this->accounts->Twitch.getCurrent()); //
this->twitch.pubsub->listenToWhispers(this->accounts->Twitch.getCurrent()); //
};
this->accounts->Twitch.userChanged.connect(RequestModerationActions);