diff options
-rwxr-xr-x | server.py | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -162,8 +162,14 @@ try: # Parse the command if cmd in ["broadcast", "global", "msg", "say", "kami"]: sendmsg("NOTICE:" + com) - elif cmd in ["ban", "block", "nuke"]: + elif cmd in ["ban", "nuke"]: security.ban_ip(com) + elif cmd in ["permaban", "block"]: + security.ban_ip(com) + f=open("K-Line.txt", "a") + f.write(com+"\n") + f.close() + stdout("%s has been K-Lined." % com) elif cmd in ["exit", "quit", "close", "term", "end"]: stdout("Preparing to close server...") sendmsg("NOTICE:Server is going down for scheduled maintenance. Please close, wait five minutes, and then re-open the app.") @@ -187,7 +193,6 @@ try: stdout("Total clients connected: %d" % len(clients)) # TODO: Disconnect a client all these are measures # to manually fight a DoS - # Also, "permaban" an IP - open("K-Line.txt", "a") # And grant gems to an user elif cmd in ["ddos", "dcall"]: totaldc=0 |