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

Diff of /lbbs/src/init.c

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

Revision 1.30 by sysadm, Fri Oct 10 01:55:06 2025 UTC Revision 1.31 by sysadm, Tue Oct 21 06:24:51 2025 UTC
# Line 155  int load_conf(const char *conf_file) Line 155  int load_conf(const char *conf_file)
155                                  BBS_max_client_per_ip = MAX_CLIENT_PER_IP_LIMIT;                                  BBS_max_client_per_ip = MAX_CLIENT_PER_IP_LIMIT;
156                          }                          }
157                  }                  }
                 else if (strcasecmp(p, "bbs_max_user") == 0)  
                 {  
                         BBS_max_user = atoi(q);  
                         if (BBS_max_user <= 0 || BBS_max_user > BBS_MAX_USER_LIMIT)  
                         {  
                                 log_error("Ignore config bbs_max_client with incorrect value %d\n", BBS_max_user);  
                                 BBS_max_user = BBS_MAX_USER_LIMIT;  
                         }  
                 }  
158                  else if (strcasecmp(p, "bbs_start_dt") == 0)                  else if (strcasecmp(p, "bbs_start_dt") == 0)
159                  {                  {
160                          y = strtok_r(q, "-", &saveptr);                          y = strtok_r(q, "-", &saveptr);
# Line 180  int load_conf(const char *conf_file) Line 171  int load_conf(const char *conf_file)
171                  else if (strcasecmp(p, "bbs_sys_id") == 0)                  else if (strcasecmp(p, "bbs_sys_id") == 0)
172                  {                  {
173                          v = atoi(q);                          v = atoi(q);
174                          if (v <= 0 || v > BBS_MAX_USER_LIMIT)                          if (v <= 0)
175                          {                          {
176                                  log_error("Ignore config bbs_sys_id with incorrect value %d\n", v);                                  log_error("Ignore config bbs_sys_id with incorrect value %d\n", v);
177                                  continue;                                  continue;


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

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