Change optional '@' to '@ ' to avoid @ing people on discord
This commit is contained in:
parent
4c6ba8049b
commit
0510fabc13
|
@ -369,8 +369,8 @@ class ScheduleSeriesManuallyCommand():
|
||||||
for i in range(0,len(teamPairLines), 2):
|
for i in range(0,len(teamPairLines), 2):
|
||||||
awayTeam = teamPairLines[i]
|
awayTeam = teamPairLines[i]
|
||||||
homeTeam = teamPairLines[i+1]
|
homeTeam = teamPairLines[i+1]
|
||||||
if homeTeam[0] == "@":
|
if len(homeTeam) > 2 and homeTeam[0:2] == "@":
|
||||||
homeTeam = homeTeam[1:].strip()
|
homeTeam = homeTeam[2:].strip()
|
||||||
teamPairs.append((awayTeam, homeTeam))
|
teamPairs.append((awayTeam, homeTeam))
|
||||||
|
|
||||||
# to do: validate each team name
|
# to do: validate each team name
|
||||||
|
|
Loading…
Reference in a new issue