.BANCHO. .FIX. Fix special channels shown in channels list after system reload

This commit is contained in:
Nyo 2016-08-12 14:27:29 +02:00
parent 59bcb351cf
commit 0e74e5c1ce
1 changed files with 3 additions and 2 deletions

View File

@ -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!"