From e2fbdfece63b9b6f171ff351815c53775ad14b9a Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 31 Jul 2024 18:04:05 -0700 Subject: [PATCH] Update system.py --- modules/system.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/system.py b/modules/system.py index a344c9e..d1e412c 100644 --- a/modules/system.py +++ b/modules/system.py @@ -365,8 +365,7 @@ async def handleSignalWatcher(): if time.time() - lastHamLibAlert > 60: lastHamLibAlert = time.time() # if sigWatchBrodcastCh contains multiple channels, broadcast to all - if sigWatchBrodcastCh.find(',') != -1: - sigWatchBrodcastCh = sigWatchBrodcastCh.split(',') + if sigWatchBrodcastCh.count(',') > 0: for ch in sigWatchBrodcastCh: if antiSpam and ch != publicChannel: send_message(msg, int(ch), 0, 1)