| 108 |
if (strcmp(c_name, "bbs_max_client") == 0) |
if (strcmp(c_name, "bbs_max_client") == 0) |
| 109 |
{ |
{ |
| 110 |
fscanf(fin, "%d", &BBS_max_client); |
fscanf(fin, "%d", &BBS_max_client); |
| 111 |
|
if (BBS_max_client > MAX_CLIENTS_LIMIT) |
| 112 |
|
{ |
| 113 |
|
log_error("Config BBS_max_client > limit (%d), reset it to limit\n", BBS_max_client); |
| 114 |
|
BBS_max_client = MAX_CLIENTS_LIMIT; |
| 115 |
|
} |
| 116 |
|
} |
| 117 |
|
if (strcmp(c_name, "bbs_max_client_per_ip") == 0) |
| 118 |
|
{ |
| 119 |
|
fscanf(fin, "%d", &BBS_max_client_per_ip); |
| 120 |
} |
} |
| 121 |
if (strcmp(c_name, "bbs_max_user") == 0) |
if (strcmp(c_name, "bbs_max_user") == 0) |
| 122 |
{ |
{ |