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

Diff of /lbbs/src/menu_proc.c

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

Revision 1.34 by sysadm, Mon Oct 13 07:13:39 2025 UTC Revision 1.36 by sysadm, Tue Oct 14 00:57:06 2025 UTC
# Line 211  int list_ex_section(void *param) Line 211  int list_ex_section(void *param)
211  {  {
212          SECTION_LIST *p_section;          SECTION_LIST *p_section;
213    
214          p_section = section_list_find_by_name(param, NULL);          p_section = section_list_find_by_name(param);
215          if (p_section == NULL)          if (p_section == NULL)
216          {          {
217                  log_error("Section %s not found\n", (const char *)param);                  log_error("Section %s not found\n", (const char *)param);
# Line 228  int list_ex_section(void *param) Line 228  int list_ex_section(void *param)
228    
229  int show_top10_menu(void *param)  int show_top10_menu(void *param)
230  {  {
231            static int show_top10 = 0;
232          int ch = 0;          int ch = 0;
233    
234            if (show_top10)
235            {
236                    return NOREDRAW;
237            }
238            show_top10 = 1;
239            
240          clearscr();          clearscr();
241          show_top("", BBS_name, "");          show_top("", BBS_name, "");
242          show_bottom("");          show_bottom("");
# Line 243  int show_top10_menu(void *param) Line 250  int show_top10_menu(void *param)
250                          switch (ch)                          switch (ch)
251                          {                          {
252                          case KEY_NULL: // broken pipe                          case KEY_NULL: // broken pipe
253                                    show_top10 = 0;
254                                  return 0;                                  return 0;
255                          case KEY_TIMEOUT:                          case KEY_TIMEOUT:
256                                  if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME)                                  if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME)
257                                  {                                  {
258                                            show_top10 = 0;
259                                          return 0;                                          return 0;
260                                  }                                  }
261                                  continue;                                  continue;
# Line 279  int show_top10_menu(void *param) Line 288  int show_top10_menu(void *param)
288                  }                  }
289          }          }
290                    
291            show_top10 = 0;
292          return REDRAW;          return REDRAW;
293  }  }
294    


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

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