Leading @

master
Bob Mottram 2019-08-24 10:43:42 +01:00
parent a3b6206481
commit 464f4f0790
1 changed files with 6 additions and 1 deletions

View File

@ -805,7 +805,12 @@ if args.dat:
if args.actor:
if '@' not in args.actor:
print('Syntax: --actor nickname@domain')
sys.exit()
sys.exit()
if args.actor.startswith('@'):
args.actor=args.actor[1:]
if '@' not in args.actor:
print('Syntax: --actor nickname@domain')
sys.exit()
nickname=args.actor.split('@')[0]
domain=args.actor.split('@')[1].replace('\n','')
wfCache={}