From 4f1981cf3b62425240c9d4310f4c9c3ee0909c0c Mon Sep 17 00:00:00 2001 From: alpcentaur Date: Tue, 6 Feb 2024 17:16:36 +0100 Subject: [PATCH] room_name variable in updaterooms was already in use, specified the var to have name check for doubles working --- fdb_spider_interface.py | 6 +++--- new_message_file.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fdb_spider_interface.py b/fdb_spider_interface.py index 590ce18..d910a70 100644 --- a/fdb_spider_interface.py +++ b/fdb_spider_interface.py @@ -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: diff --git a/new_message_file.txt b/new_message_file.txt index 9edc23b..e6534a4 100644 --- a/new_message_file.txt +++ b/new_message_file.txt @@ -1 +1 @@ -printrooms§%§%eoj3hTktBCRcBbrt8 \ No newline at end of file +createroom test42 ['giz','fdb2'] ['oi','open_source','cool'] 7§%§%RHAiN4X4uQ373tD3B \ No newline at end of file