mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2024-12-25 12:22:42 -06:00
fix extra prompt showing at end of program
This commit is contained in:
parent
8b33c0ee5d
commit
d41618b96e
1 changed files with 3 additions and 1 deletions
4
demo.py
4
demo.py
|
@ -154,7 +154,8 @@ def fixup_handle(handle):
|
||||||
|
|
||||||
current_participants = []
|
current_participants = []
|
||||||
current_effect = None
|
current_effect = None
|
||||||
while True:
|
hasQuit = False
|
||||||
|
while not hasQuit:
|
||||||
msg = im.receive()
|
msg = im.receive()
|
||||||
if msg is not None:
|
if msg is not None:
|
||||||
# print(f'[{msg.sender}] {msg.text}')
|
# print(f'[{msg.sender}] {msg.text}')
|
||||||
|
@ -185,6 +186,7 @@ while True:
|
||||||
print('handle <handle>: set the current handle (for sending messages)')
|
print('handle <handle>: set the current handle (for sending messages)')
|
||||||
print('\\: escape commands (will be removed from message)')
|
print('\\: escape commands (will be removed from message)')
|
||||||
elif msg == 'quit' or msg == 'q':
|
elif msg == 'quit' or msg == 'q':
|
||||||
|
hasQuit = True
|
||||||
break
|
break
|
||||||
elif msg == 'effect' or msg == 'e' or msg.startswith("effect ") or msg.startswith("e "):
|
elif msg == 'effect' or msg == 'e' or msg.startswith("effect ") or msg.startswith("e "):
|
||||||
msg = msg.split(" ")
|
msg = msg.split(" ")
|
||||||
|
|
Loading…
Reference in a new issue