--- lbbs/src/menu_proc.c 2025/10/21 11:11:28 1.42 +++ lbbs/src/menu_proc.c 2025/11/04 14:58:56 1.45 @@ -1,18 +1,10 @@ -/*************************************************************************** - menu_proc.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 */ +/* + * menu_proc + * - handler functions of menu commands + * + * Copyright (C) 2004-2025 Leaflet + */ #include "article_cache.h" #include "article_favor_display.h" @@ -44,7 +36,8 @@ int list_section(void *param) return REDRAW; } -typedef union exec_handler_t{ +typedef union exec_handler_t +{ void *p; int (*handler)(); } exec_handler; @@ -345,11 +338,21 @@ int favor_topic(void *param) return REDRAW; } -int user_list(void *param) +int list_user(void *param) +{ + if (user_list_display(0) < 0) + { + log_error("user_list_display(all_user) error\n"); + } + + return REDRAW; +} + +int list_online_user(void *param) { - if (user_list_display() < 0) + if (user_list_display(1) < 0) { - log_error("user_list_display() error\n"); + log_error("user_list_display(online_user) error\n"); } return REDRAW;