--- lbbs/src/bbs_cmd.c 2025/10/22 04:48:53 1.22 +++ lbbs/src/bbs_cmd.c 2025/11/05 14:59:31 1.26 @@ -1,18 +1,10 @@ -/*************************************************************************** - 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 + */ #include "bbs_cmd.h" #include "menu_proc.h" @@ -36,9 +28,10 @@ static const BBS_CMD bbs_cmd_list[] = { {"FAVOR_TOPIC", favor_topic}, {"LIST_USER", list_user}, {"LIST_ONLINE_USER", list_online_user}, + {"EDIT_INTRO", edit_intro}, }; -static const int bbs_cmd_count = 16; +static const int bbs_cmd_count = sizeof(bbs_cmd_list) / sizeof(BBS_CMD); static TRIE_NODE *p_bbs_cmd_dict;