mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-03-05 20:51:53 -08:00
Update command_handlers.py
disable features from config.ini
This commit is contained in:
parent
a1d922d29c
commit
dcec7d94b1
|
@ -37,16 +37,21 @@ def handle_exit_command(sender_id, interface):
|
|||
|
||||
def handle_help_command(sender_id, interface, state=None):
|
||||
title = "█▓▒░ Yorkshire BBS ░▒▓█\n\n"
|
||||
commands = [
|
||||
"[M]ail",
|
||||
"[B]ulletin",
|
||||
"[S]tats",
|
||||
#"[F]ortune",
|
||||
#"[W]all of Shame",
|
||||
#"[C]hannel Directory",
|
||||
#"EXIT: Exit current menu",
|
||||
"[H]elp"
|
||||
]
|
||||
commands = []
|
||||
if mail in interface.disabled == False:
|
||||
commands.append("[M]ail")
|
||||
if bulletin in interface.disabled == False:
|
||||
commands.append("[B]ulletin")
|
||||
if stats in interface.disabled == False:
|
||||
commands.append("[S]tats")
|
||||
if fortune in interface.disabled == False:
|
||||
commands.append("[F]ortune")
|
||||
if wos in interface.disabled == False:
|
||||
commands.append("[W]all of Shame")
|
||||
if channel in interface.disabled == False:
|
||||
commands.append("[C]hannel Directory")
|
||||
commands.append("[H]elp")
|
||||
|
||||
if state and 'command' in state:
|
||||
current_command = state['command']
|
||||
if current_command == 'MAIL':
|
||||
|
|
Loading…
Reference in a new issue