We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7a3ec1 commit 440ec4bCopy full SHA for 440ec4b
sopel/bot.py
@@ -605,7 +605,7 @@ def rate_limit_info(
605
rate_limit_type = "user"
606
rate_limit = rule.user_rate_limit
607
metrics = rule.get_user_metrics(nick)
608
- elif is_channel and rule.is_channel_rate_limited(channel, at_time):
+ elif channel and rule.is_channel_rate_limited(channel, at_time):
609
template = rule.channel_rate_template
610
rate_limit_type = "channel"
611
rate_limit = rule.channel_rate_limit
@@ -614,7 +614,7 @@ def rate_limit_info(
614
template = rule.global_rate_template
615
rate_limit_type = "global"
616
rate_limit = rule.global_rate_limit
617
- metrics = global_metrics
+ metrics = rule.get_global_metrics()
618
else:
619
return False, None
620
0 commit comments