mirror of https://gitlab.com/bashrc2/epicyon
Rename variable
parent
4ecee6b829
commit
b02c6c9de1
10
epicyon.py
10
epicyon.py
|
@ -1833,13 +1833,13 @@ if args.availability:
|
||||||
|
|
||||||
if args.desktop:
|
if args.desktop:
|
||||||
# Announce posts as they arrive in your inbox using text-to-speech
|
# Announce posts as they arrive in your inbox using text-to-speech
|
||||||
if args.notifications.startswith('@'):
|
if args.desktop.startswith('@'):
|
||||||
args.notifications = args.notifications[1:]
|
args.desktop = args.desktop[1:]
|
||||||
if '@' not in args.notifications:
|
if '@' not in args.desktop:
|
||||||
print('Specify the handle to notify: nickname@domain')
|
print('Specify the handle to notify: nickname@domain')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
nickname = args.notifications.split('@')[0]
|
nickname = args.desktop.split('@')[0]
|
||||||
domain = args.notifications.split('@')[1]
|
domain = args.desktop.split('@')[1]
|
||||||
|
|
||||||
if not nickname:
|
if not nickname:
|
||||||
print('Specify a nickname with the --nickname option')
|
print('Specify a nickname with the --nickname option')
|
||||||
|
|
Loading…
Reference in New Issue