Merge pull request #121 from mkinney/channel_name_limit

do not allow channel names longer than 10 characters
This commit is contained in:
Jm Casler
2021-11-30 14:36:39 -08:00
committed by GitHub

View File

@@ -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(