/[LeafOK_CVS]/lbbs/src/bbs_main.c
ViewVC logotype

Diff of /lbbs/src/bbs_main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.97 by sysadm, Tue Nov 4 13:49:51 2025 UTC Revision 1.100 by sysadm, Wed Nov 5 02:48:48 2025 UTC
# Line 3  Line 3 
3   * bbs_main   * bbs_main
4   *   - entry and major procedures of user interactive access   *   - entry and major procedures of user interactive access
5   *   *
6   * Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com>   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>
7   */   */
8    
9  #include "article_favor.h"  #include "article_favor.h"
# Line 161  int bbs_center() Line 161  int bbs_center()
161                          log_error("KEY_NULL\n");                          log_error("KEY_NULL\n");
162                          return 0;                          return 0;
163                  case KEY_TIMEOUT:                  case KEY_TIMEOUT:
164                          if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME)                          if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time)
165                          {                          {
166                                  log_error("User input timeout\n");                                  log_error("User input timeout\n");
167                                  return 0;                                  return 0;
# Line 274  int bbs_main() Line 274  int bbs_main()
274          }          }
275    
276          // Set default charset          // Set default charset
277          if (io_conv_init(BBS_DEFAULT_CHARSET) < 0)          if (io_conv_init(BBS_default_charset) < 0)
278          {          {
279                  log_error("io_conv_init(%s) error\n", BBS_DEFAULT_CHARSET);                  log_error("io_conv_init(%s) error\n", BBS_default_charset);
280                  goto cleanup;                  goto cleanup;
281          }          }
282    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1