From 0e74e5c1cef2caa141f2ea41b81310d8200a3626 Mon Sep 17 00:00:00 2001 From: Nyo Date: Fri, 12 Aug 2016 14:27:29 +0200 Subject: [PATCH] .BANCHO. .FIX. Fix special channels shown in channels list after system reload --- constants/fokabotCommands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/constants/fokabotCommands.py b/constants/fokabotCommands.py index 2293aec..3d14cb0 100644 --- a/constants/fokabotCommands.py +++ b/constants/fokabotCommands.py @@ -308,8 +308,9 @@ def systemReload(fro, chan, message): # Send new channels and new bottom icon to everyone glob.tokens.enqueueAll(serverPackets.mainMenuIcon(glob.banchoConf.config["menuIcon"])) glob.tokens.enqueueAll(serverPackets.channelInfoEnd()) - for key, _ in glob.channels.channels.items(): - glob.tokens.enqueueAll(serverPackets.channelInfo(key)) + for key, value in glob.channels.channels.items(): + if value.publicRead == True and value.hidden == False: + glob.tokens.enqueueAll(serverPackets.channelInfo(key)) return "Bancho settings reloaded!"