do not allow channel names longer than 10 characters

This commit is contained in:
Mike Kinney
2021-11-21 22:52:16 -08:00
parent eb13589336
commit ccd6e7f4ed

View File

@@ -317,6 +317,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(