From db410e10f4a8ffb408ec65214fb431f9e497a042 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 9 Nov 2017 14:07:20 +0100 Subject: [PATCH] Fixed autopush removing themselves when a new push comes in --- src/controller/controller_push.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/controller_push.cpp b/src/controller/controller_push.cpp index 350d2d01..344634a6 100644 --- a/src/controller/controller_push.cpp +++ b/src/controller/controller_push.cpp @@ -318,7 +318,7 @@ namespace Controller{ /// Starts all configured auto pushes for the given stream. void doAutoPush(std::string &streamname){ jsonForEach(Controller::Storage["autopushes"], it){ - if (it->size() > 2 || (*it)[2u].asInt() < Util::epoch()){continue;} + if (it->size() > 2 && (*it)[2u].asInt() < Util::epoch()){continue;} const std::string &pStr = (*it)[0u].asStringRef(); if (pStr == streamname || (*pStr.rbegin() == '+' && streamname.substr(0, pStr.size()) == pStr)){ std::string stream = streamname;