--- lbbs/src/bbs_cmd.c 2025/10/13 05:34:27 1.17 +++ lbbs/src/bbs_cmd.c 2025/12/01 11:28:03 1.30 @@ -1,20 +1,17 @@ -/*************************************************************************** - bbs_cmd.c - description - ------------------- - Copyright : (C) 2004-2025 by Leaflet - Email : leaflet@leafok.com - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 3 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* + * bbs_cmd + * - manager of menu command handler + * + * Copyright (C) 2004-2025 Leaflet + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "bbs_cmd.h" +#include "data_file_mgr.h" #include "menu_proc.h" #include "trie_dict.h" #include @@ -23,19 +20,26 @@ static const BBS_CMD bbs_cmd_list[] = { {"LIST_SECTION", list_section}, {"RunMBEM", exec_mbem}, {"EXITBBS", exit_bbs}, + {"EULA", eula}, {"LICENSE", license}, {"COPYRIGHT", copyright}, + {"VERSION", version}, {"RELOADCONF", reload_bbs_conf}, + {"DATAMGR", data_file_mgr}, {"SHUTDOWN", shutdown_bbs}, - {"M_FAVOR_SECTION", favour_section_filter}, + {"M_FAVOR_SECTION", favor_section_filter}, {"VIEW_EX_ARTICLE", view_ex_article}, {"LIST_EX_SECTION", list_ex_section}, - {"TOP10", top10_menu}, + {"TOP10", show_top10_menu}, {"LOCATE_ARTICLE", locate_article}, {"FAVOR_TOPIC", favor_topic}, + {"LIST_USER", list_user}, + {"LIST_ONLINE_USER", list_online_user}, + {"EDIT_INTRO", edit_intro}, + {"EDIT_SIGN", edit_sign}, }; -static const int bbs_cmd_count = 13; +static const int bbs_cmd_count = sizeof(bbs_cmd_list) / sizeof(BBS_CMD); static TRIE_NODE *p_bbs_cmd_dict;