mirror of
https://github.com/meshtastic/python.git
synced 2025-12-31 03:47:55 -05:00
Merge pull request #121 from mkinney/channel_name_limit
do not allow channel names longer than 10 characters
This commit is contained in:
@@ -315,6 +315,8 @@ def onConnected(interface):
|
||||
if args.ch_add:
|
||||
closeNow = True
|
||||
n = getNode()
|
||||
if len(args.ch_add) > 10:
|
||||
raise Exception("Channel name must be shorter. Channel not added.")
|
||||
ch = n.getChannelByName(args.ch_add)
|
||||
if ch:
|
||||
logging.error(
|
||||
|
||||
Reference in New Issue
Block a user