fixed timeouts for non moderators

This commit is contained in:
fourtf
2018-05-17 13:43:01 +02:00
parent 89ca71aec4
commit 4d3437e6d1
6 changed files with 112 additions and 114 deletions
+2 -1
View File
@@ -182,8 +182,9 @@ void Application::initialize()
}
auto msg = messages::Message::createTimeoutMessage(action);
msg->flags |= messages::Message::PubSub;
util::postToThread([chan, msg] { chan->addMessage(msg); });
util::postToThread([chan, msg] { chan->addOrReplaceTimeout(msg); });
});
this->twitch.pubsub->sig.moderation.userUnbanned.connect([&](const auto &action) {