diff --git a/tasks/iterate_prc_logs.py b/tasks/iterate_prc_logs.py index 43f6bd0..a135a6a 100644 --- a/tasks/iterate_prc_logs.py +++ b/tasks/iterate_prc_logs.py @@ -408,10 +408,12 @@ async def check_team_restrictions(bot, settings, guild_id, players): kick_against.append(plr.username) bot.team_restrictions_infractions[guild_id][plr.username] = 0 if len(load_against) > 0: - try: - await bot.prc_api.run_command(guild_id, f":load {','.join(load_against)}") - except: - logging.warning("PRC API Rate limit reached when loading.") + cmd = f":load {','.join(load_against)}" + if cmd.strip() != ":load": + try: + await bot.prc_api.run_command(guild_id, cmd) + except: + logging.warning("PRC API Rate limit reached when loading.") for message, plrs_to_send in pm_against.items(): try: await bot.scheduled_pm_queue.put((guild_id, ','.join(plrs_to_send), message))