From 0510fabc13398dd2ae93bba233a4dae0c8598976 Mon Sep 17 00:00:00 2001 From: hillexed Date: Tue, 29 Dec 2020 00:54:10 -0500 Subject: [PATCH] Change optional '@' to '@ ' to avoid @ing people on discord --- the_prestige.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/the_prestige.py b/the_prestige.py index 388cef9..a091a69 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -369,8 +369,8 @@ class ScheduleSeriesManuallyCommand(): for i in range(0,len(teamPairLines), 2): awayTeam = teamPairLines[i] homeTeam = teamPairLines[i+1] - if homeTeam[0] == "@": - homeTeam = homeTeam[1:].strip() + if len(homeTeam) > 2 and homeTeam[0:2] == "@": + homeTeam = homeTeam[2:].strip() teamPairs.append((awayTeam, homeTeam)) # to do: validate each team name