I'm the best at space
This commit is contained in:
parent
b5ae34804d
commit
862111be9e
@ -7854,7 +7854,7 @@ def parse_warning_target(target):
|
|||||||
def add_warning(target, amount, actor, reason, notes=None, expires=None, need_ack=False, sanctions=None):
|
def add_warning(target, amount, actor, reason, notes=None, expires=None, need_ack=False, sanctions=None):
|
||||||
# make 0-point warnings no-op successfully, otherwise we add warnings when things like PART_PENALTY is 0
|
# make 0-point warnings no-op successfully, otherwise we add warnings when things like PART_PENALTY is 0
|
||||||
if amount == 0:
|
if amount == 0:
|
||||||
return True
|
return False
|
||||||
|
|
||||||
tacc, thm = parse_warning_target(target)
|
tacc, thm = parse_warning_target(target)
|
||||||
if tacc is None and thm is None:
|
if tacc is None and thm is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user