changed seperator for door token file to support whitespaces in names etc.

This commit is contained in:
Simon Pirkelmann 2021-03-21 15:30:02 +01:00
parent 2efc2343b6
commit 4ac7e46ca8

View File

@ -78,7 +78,7 @@ def read_valid_tokens():
valid = {} valid = {}
lines =[ s.strip() for s in open(config.valid_tokens, "r").readlines() ] lines =[ s.strip() for s in open(config.valid_tokens, "r").readlines() ]
for l in lines: for l in lines:
l = l.split(' ', 1) l = l.split('|', 1)
if len(l) > 1: if len(l) > 1:
if l[0] in valid: if l[0] in valid:
log("Warning: Overwriting token %s" % (l[0],)) log("Warning: Overwriting token %s" % (l[0],))