forked from indymedia/epicyon
Checking that petname exists
parent
901d9c66c5
commit
44eacde556
|
@ -29,7 +29,7 @@ def setPetName(baseDir: str, nickname: str, domain: str,
|
||||||
if os.path.isfile(petnamesFilename):
|
if os.path.isfile(petnamesFilename):
|
||||||
with open(petnamesFilename, 'r') as petnamesFile:
|
with open(petnamesFilename, 'r') as petnamesFile:
|
||||||
petnamesStr = petnamesFile.read()
|
petnamesStr = petnamesFile.read()
|
||||||
if entry in petnamesStr:
|
if petnamesStr.startswith(petname + ' '):
|
||||||
return True
|
return True
|
||||||
if ' ' + handle + '\n' in petnamesStr:
|
if ' ' + handle + '\n' in petnamesStr:
|
||||||
petnamesList = petnamesStr.split('\n')
|
petnamesList = petnamesStr.split('\n')
|
||||||
|
|
Loading…
Reference in New Issue