arcs

Amateur Radio Chat Server with a modern interface
git clone git://squid-tech.com/arcs.git
Log | Files | Refs | README

commit 041ff6cb40b550e620bfc1b18d83f4d530601193
parent 6939296a5e67583cf7daa4f4630c15d6f643c344
Author: joshiemoore <jxm5210@g.rit.edu>
Date:   Fri, 20 Dec 2019 18:54:44 -0500

Add disconnect command

Diffstat:
Marcs.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/arcs.py b/arcs.py @@ -252,13 +252,17 @@ def relay(port, sender, msg): Respond to /commands sent by users. """ def handleCommand(port, user, command): - if ("/ping" in command): + if "/ping" in command: # keep the user alive _USERS[user] = (int(time.time()), command) # Pong! if "-r" in command: sendMessage(port, HOST, user, _PATH, "Pong!") + elif "/disconnect" in command: + if user in _USERS: + print("DISCONNECT " + user) + _USERS.pop(user) """ Parse an igate packet.