Remove unnecessary code

This commit is contained in:
Subnet_Masked 2024-02-04 16:50:35 -05:00
parent 91a3a2bde6
commit 53c000cb14
Signed by: Subnet_Masked
GPG key ID: E1BB06A2490954E9

View file

@ -54,14 +54,8 @@ def create_server(isfirstrun=False):
srv_pass = input('Password: ')
print('OK\n')
new_server = [{"name":srv_name,"address":srv_addr,"port":srv_port,"password":srv_pass}]
if(isfirstrun):
json_obj = json.dumps(new_server,indent=4)
with open(servers_file, "w") as outfile:
outfile.write(json_obj)
else:
servers = servers + new_server
write_servers()
servers = servers + new_server
write_servers()
initial_choice()
def pop_server():