mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-08-07 14:12:19 -04:00
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:
parent
ab9449ad0b
commit
8bf833daa9
6 changed files with 47 additions and 6 deletions
2
utils.py
2
utils.py
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue