From 93ee1364c66aa922829c8d3fccf31689fe91d0ec Mon Sep 17 00:00:00 2001 From: Josh Smith Date: Mon, 10 Dec 2018 17:38:13 -0500 Subject: [PATCH] sdfgfdg --- handlers/submitModularHandler.pyx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/handlers/submitModularHandler.pyx b/handlers/submitModularHandler.pyx index d3a655f..ecc7580 100644 --- a/handlers/submitModularHandler.pyx +++ b/handlers/submitModularHandler.pyx @@ -223,13 +223,14 @@ class handler(requestsManager.asyncRequestHandler): userUtils.ban(userID) userUtils.appendNotes(userID, "Banned due to negative score.") - if (s.score - (s.c300 * 300 + s.c100 * 100 + s.c50 * 50)) < 0 and not isRelaxing: - #userUtils.ban(userID) - #userUtils.appendNotes(userID, "Banned due to score being less than no-combo value.") - log.cmyui("{} has submitted a score where score is less than no-combo value. (scoreID: {}, score: {}, pp:{})".format(username, s.scoreID, s.score, s.pp), discord="cm") + if s.passed: # just incase :)! + if (s.score - (s.c300 * 300 + s.c100 * 100 + s.c50 * 50)) < 0 and not isRelaxing: + #userUtils.ban(userID) + #userUtils.appendNotes(userID, "Banned due to score being less than no-combo value.") + log.cmyui("{} has submitted a score where score is less than no-combo value. (scoreID: {}, score: {}, pp:{})".format(username, s.scoreID, s.score, s.pp), discord="cm") - if s.fullCombo and s.cmiss > 0: - log.cmyui("{} has submitted a score with 'fullCombo' flag, but has > 0 misses. (scoreID: {}, score: {}, pp:{})".format(username, s.scoreID, s.score, s.pp), discord="cm") + if s.fullCombo and s.cmiss > 0: + log.cmyui("{} has submitted a score with 'fullCombo' flag, but has > 0 misses. (scoreID: {}, score: {}, pp:{})".format(username, s.scoreID, s.score, s.pp), discord="cm") # Make sure the score is not memed if s.gameMode == gameModes.MANIA and s.score > 1000000: