fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4831722#context
parent
3e14e7a528
commit
49bc6bbba9
|
@ -156,7 +156,11 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, log_cost=None, followers_pi
|
|||
cost = 0
|
||||
coin_receivers = set()
|
||||
|
||||
for i in group_mention_regex.finditer(text):
|
||||
groups = group_mention_regex.finditer(text)
|
||||
if len(list(groups)) > 5:
|
||||
abort(403, "You can only ping a maximum of 5 ping groups!")
|
||||
|
||||
for i in groups:
|
||||
if oldtext and i.group(1) in oldtext:
|
||||
continue
|
||||
|
||||
|
|
|
@ -420,11 +420,6 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
|
|||
|
||||
if not sanitized: return ''
|
||||
|
||||
if FEATURES['PING_GROUPS']:
|
||||
ping_group_count = len(list(group_mention_regex.finditer(sanitized)))
|
||||
if ping_group_count > 5:
|
||||
error("You can only ping a maximum of 5 ping groups!")
|
||||
|
||||
if blackjack and execute_blackjack(g.v, None, sanitized, blackjack):
|
||||
sanitized = 'g'
|
||||
|
||||
|
|
Loading…
Reference in New Issue