/[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.69 by sysadm, Thu Jun 12 10:34:21 2025 UTC Revision 1.70 by sysadm, Tue Jun 17 02:06:48 2025 UTC
# Line 197  int bbs_center() Line 197  int bbs_center()
197          int ch;          int ch;
198          time_t t_last_action;          time_t t_last_action;
199    
200          BBS_last_access_tm = t_last_action = time(0);          BBS_last_access_tm = t_last_action = time(NULL);
201    
202          clearscr();          clearscr();
203    
# Line 211  int bbs_center() Line 211  int bbs_center()
211          {          {
212                  ch = igetch(100);                  ch = igetch(100);
213    
214                  if (p_bbs_menu->choose_step == 0 && time(0) - t_last_action >= 10)                  if (p_bbs_menu->choose_step == 0 && time(NULL) - t_last_action >= 10)
215                  {                  {
216                          t_last_action = time(0);                          t_last_action = time(NULL);
217    
218                          show_active_board();                          show_active_board();
219                          show_bottom("");                          show_bottom("");
# Line 226  int bbs_center() Line 226  int bbs_center()
226                  case KEY_NULL: // broken pipe                  case KEY_NULL: // broken pipe
227                          return 0;                          return 0;
228                  case KEY_TIMEOUT:                  case KEY_TIMEOUT:
229                          if (time(0) - BBS_last_access_tm >= MAX_DELAY_TIME)                          if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME)
230                          {                          {
231                                  return 0;                                  return 0;
232                          }                          }
# Line 239  int bbs_center() Line 239  int bbs_center()
239                          case EXITBBS:                          case EXITBBS:
240                                  return 0;                                  return 0;
241                          case REDRAW:                          case REDRAW:
242                                  t_last_action = time(0);                                  t_last_action = time(NULL);
243                                  clearscr();                                  clearscr();
244                                  show_top("", BBS_name, "");                                  show_top("", BBS_name, "");
245                                  show_active_board();                                  show_active_board();
# Line 254  int bbs_center() Line 254  int bbs_center()
254                          iflush();                          iflush();
255                  }                  }
256    
257                  BBS_last_access_tm = time(0);                  BBS_last_access_tm = time(NULL);
258          }          }
259    
260          return 0;          return 0;


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

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