Make short_name case insensitive

Make short_name case insensitive and added config.ini to gitignore, added example_config.ini, and updated README
This commit is contained in:
TC² 2024-07-04 11:42:29 -04:00
parent ab9449ad0b
commit 8bf833daa9
6 changed files with 47 additions and 6 deletions

View file

@ -28,7 +28,7 @@ def send_message(message, destination, interface):
def get_node_info(interface, short_name):
nodes = [{'num': node_id, 'shortName': node['user']['shortName'], 'longName': node['user']['longName']}
for node_id, node in interface.nodes.items()
if node['user']['shortName'] == short_name]
if node['user']['shortName'].lower() == short_name]
return nodes