Only show no-commit pushes when it's a force

This commit is contained in:
jesopo 2019-04-16 10:24:55 +01:00
parent cc203f1756
commit 959d6a067c

View file

@ -472,7 +472,7 @@ class Module(ModuleManager.BaseModule):
if data["forced"]:
forced = "%s " % utils.irc.color("force", utils.consts.RED)
if len(data["commits"]) == 0:
if len(data["commits"]) == 0 and data["forced"]:
outputs.append(
"%s %spushed to %s" % (author, forced, branch))
elif len(data["commits"]) <= 3: