room_name variable in updaterooms was already in use, specified the var to have name check for doubles working

This commit is contained in:
alpcentaur 2024-02-06 17:16:36 +01:00
parent 2e5039cef3
commit 4f1981cf3b
2 changed files with 4 additions and 4 deletions

View file

@ -747,11 +747,11 @@ if __name__ == '__main__':
if user_input_list[0] == 'createroom':
try:
room_name_from_input = user_input_list[1]
room_id = name2id(room_name_from_input)
if room_id == 'NONE':
room_id_check = name2id(room_name_from_input)
if room_id_check == 'NONE':
room_name = user_input_list[1]
else:
if len(room_id) > 8:
if len(room_id_check) > 8:
room_name = 'NONE'
except Exception as e:

View file

@ -1 +1 @@
printrooms§%§%eoj3hTktBCRcBbrt8
createroom test42 ['giz','fdb2'] ['oi','open_source','cool'] 7§%§%RHAiN4X4uQ373tD3B