| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
#include "config.h" |
|---|
| 58 |
#include "copyrite.h" |
|---|
| 59 |
#include <stdio.h> |
|---|
| 60 |
#include <stdlib.h> |
|---|
| 61 |
#include <string.h> |
|---|
| 62 |
#include <ctype.h> |
|---|
| 63 |
#ifdef I_SYS_TYPES |
|---|
| 64 |
#include <sys/types.h> |
|---|
| 65 |
#endif |
|---|
| 66 |
#include <fcntl.h> |
|---|
| 67 |
#ifdef I_SYS_TIME |
|---|
| 68 |
#include <sys/time.h> |
|---|
| 69 |
#ifdef TIME_WITH_SYS_TIME |
|---|
| 70 |
#include <time.h> |
|---|
| 71 |
#endif |
|---|
| 72 |
#else |
|---|
| 73 |
#include <time.h> |
|---|
| 74 |
#endif |
|---|
| 75 |
#ifdef I_UNISTD |
|---|
| 76 |
#include <unistd.h> |
|---|
| 77 |
#endif |
|---|
| 78 |
#include "conf.h" |
|---|
| 79 |
#include "externs.h" |
|---|
| 80 |
#include "mypcre.h" |
|---|
| 81 |
#include "access.h" |
|---|
| 82 |
#include "mymalloc.h" |
|---|
| 83 |
#include "match.h" |
|---|
| 84 |
#include "parse.h" |
|---|
| 85 |
#include "log.h" |
|---|
| 86 |
#include "mushdb.h" |
|---|
| 87 |
#include "dbdefs.h" |
|---|
| 88 |
#include "flags.h" |
|---|
| 89 |
#include "confmagic.h" |
|---|
| 90 |
|
|---|
| 91 |
|
|---|
| 92 |
typedef struct a_acsflag acsflag; |
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 |
|
|---|
| 96 |
struct a_acsflag { |
|---|
| 97 |
const char *name; |
|---|
| 98 |
bool toggle; |
|---|
| 99 |
uint32_t flag; |
|---|
| 100 |
}; |
|---|
| 101 |
static acsflag acslist[] = { |
|---|
| 102 |
{"connect", 1, ACS_CONNECT}, |
|---|
| 103 |
{"create", 1, ACS_CREATE}, |
|---|
| 104 |
{"guest", 1, ACS_GUEST}, |
|---|
| 105 |
{"default", 0, ACS_DEFAULT}, |
|---|
| 106 |
{"register", 0, ACS_REGISTER}, |
|---|
| 107 |
{"suspect", 0, ACS_SUSPECT}, |
|---|
| 108 |
{"deny_silent", 0, ACS_DENY_SILENT}, |
|---|
| 109 |
{"regexp", 0, ACS_REGEXP}, |
|---|
| 110 |
{"god", 1, ACS_GOD}, |
|---|
| 111 |
{"wizard", 1, ACS_WIZARD}, |
|---|
| 112 |
{"admin", 1, ACS_ADMIN}, |
|---|
| 113 |
{NULL, 0, 0} |
|---|
| 114 |
}; |
|---|
| 115 |
|
|---|
| 116 |
static struct access *access_top; |
|---|
| 117 |
static void free_access_list(void); |
|---|
| 118 |
|
|---|
| 119 |
extern const unsigned char *tables; |
|---|
| 120 |
|
|---|
| 121 |
static struct access * |
|---|
| 122 |
sitelock_alloc(const char *host, dbref who, |
|---|
| 123 |
uint32_t can, uint32_t cant, |
|---|
| 124 |
const char *comment, const char **errptr) |
|---|
| 125 |
__attribute_malloc__; |
|---|
| 126 |
|
|---|
| 127 |
static struct access *sitelock_alloc(const char *host, dbref who, |
|---|
| 128 |
uint32_t can, uint32_t cant, |
|---|
| 129 |
const char *comment, |
|---|
| 130 |
const char **errptr) |
|---|
| 131 |
{ |
|---|
| 132 |
struct access *tmp; |
|---|
| 133 |
tmp = mush_malloc(sizeof(struct access), "sitelock.rule"); |
|---|
| 134 |
if (!tmp) { |
|---|
| 135 |
static const char *memerr = "unable to allocate memory"; |
|---|
| 136 |
if (errptr) |
|---|
| 137 |
*errptr = memerr; |
|---|
| 138 |
return NULL; |
|---|
| 139 |
} |
|---|
| 140 |
tmp->who = who; |
|---|
| 141 |
tmp->can = can; |
|---|
| 142 |
tmp->cant = cant; |
|---|
| 143 |
mush_strncpy(tmp->host, host, BUFFER_LEN); |
|---|
| 144 |
if (comment) |
|---|
| 145 |
mush_strncpy(tmp->comment, comment, BUFFER_LEN); |
|---|
| 146 |
else |
|---|
| 147 |
tmp->comment[0] = '\0'; |
|---|
| 148 |
tmp->next = NULL; |
|---|
| 149 |
|
|---|
| 150 |
if (can & ACS_REGEXP) { |
|---|
| 151 |
int erroffset = 0; |
|---|
| 152 |
tmp->re = pcre_compile(host, 0, errptr, &erroffset, tables); |
|---|
| 153 |
if (!tmp->re) { |
|---|
| 154 |
mush_free(tmp, "sitelock.rule"); |
|---|
| 155 |
return NULL; |
|---|
| 156 |
} |
|---|
| 157 |
} else |
|---|
| 158 |
tmp->re = NULL; |
|---|
| 159 |
|
|---|
| 160 |
return tmp; |
|---|
| 161 |
} |
|---|
| 162 |
|
|---|
| 163 |
static bool |
|---|
| 164 |
add_access_node(const char *host, dbref who, uint32_t can, |
|---|
| 165 |
uint32_t cant, const char *comment, const char **errptr) |
|---|
| 166 |
{ |
|---|
| 167 |
struct access *end, *tmp; |
|---|
| 168 |
|
|---|
| 169 |
tmp = sitelock_alloc(host, who, can, cant, comment, errptr); |
|---|
| 170 |
if (!tmp) |
|---|
| 171 |
return false; |
|---|
| 172 |
|
|---|
| 173 |
if (!access_top) { |
|---|
| 174 |
|
|---|
| 175 |
access_top = tmp; |
|---|
| 176 |
} else { |
|---|
| 177 |
end = access_top; |
|---|
| 178 |
while (end->next) |
|---|
| 179 |
end = end->next; |
|---|
| 180 |
end->next = tmp; |
|---|
| 181 |
} |
|---|
| 182 |
return true; |
|---|
| 183 |
} |
|---|
| 184 |
|
|---|
| 185 |
|
|---|
| 186 |
|
|---|
| 187 |
|
|---|
| 188 |
|
|---|
| 189 |
|
|---|
| 190 |
bool |
|---|
| 191 |
read_access_file(void) |
|---|
| 192 |
{ |
|---|
| 193 |
FILE *fp; |
|---|
| 194 |
char buf[BUFFER_LEN]; |
|---|
| 195 |
char *p; |
|---|
| 196 |
uint32_t can, cant; |
|---|
| 197 |
int retval; |
|---|
| 198 |
dbref who; |
|---|
| 199 |
char *comment; |
|---|
| 200 |
const char *errptr = NULL; |
|---|
| 201 |
|
|---|
| 202 |
if (access_top) { |
|---|
| 203 |
|
|---|
| 204 |
|
|---|
| 205 |
|
|---|
| 206 |
free_access_list(); |
|---|
| 207 |
} |
|---|
| 208 |
access_top = NULL; |
|---|
| 209 |
|
|---|
| 210 |
release_fd(); |
|---|
| 211 |
fp = fopen(ACCESS_FILE, FOPEN_READ); |
|---|
| 212 |
if (!fp) { |
|---|
| 213 |
do_rawlog(LT_ERR, T("Access file %s not found."), ACCESS_FILE); |
|---|
| 214 |
retval = 0; |
|---|
| 215 |
} else { |
|---|
| 216 |
do_rawlog(LT_ERR, "Reading %s", ACCESS_FILE); |
|---|
| 217 |
while (fgets(buf, BUFFER_LEN, fp)) { |
|---|
| 218 |
|
|---|
| 219 |
if ((p = strchr(buf, '\r'))) |
|---|
| 220 |
*p = '\0'; |
|---|
| 221 |
else if ((p = strchr(buf, '\n'))) |
|---|
| 222 |
*p = '\0'; |
|---|
| 223 |
|
|---|
| 224 |
p = buf; |
|---|
| 225 |
if (*p && isspace((unsigned char) *p)) |
|---|
| 226 |
p++; |
|---|
| 227 |
if (*p && *p != '#') { |
|---|
| 228 |
can = cant = 0; |
|---|
| 229 |
comment = NULL; |
|---|
| 230 |
|
|---|
| 231 |
if (!strncasecmp(p, "@sitelock", 9)) { |
|---|
| 232 |
if (!add_access_node("@sitelock", AMBIGUOUS, ACS_SITELOCK, 0, "", |
|---|
| 233 |
&errptr)) |
|---|
| 234 |
do_log(LT_ERR, GOD, GOD, T("Failed to add sitelock node: %s"), |
|---|
| 235 |
errptr); |
|---|
| 236 |
} else { |
|---|
| 237 |
if ((comment = strchr(p, '#'))) { |
|---|
| 238 |
*comment++ = '\0'; |
|---|
| 239 |
while (*comment && isspace((unsigned char) *comment)) |
|---|
| 240 |
comment++; |
|---|
| 241 |
} |
|---|
| 242 |
|
|---|
| 243 |
while (*p && !isspace((unsigned char) *p)) |
|---|
| 244 |
p++; |
|---|
| 245 |
if (*p) |
|---|
| 246 |
*p++ = '\0'; |
|---|
| 247 |
if (!parse_access_options(p, &who, &can, &cant, NOTHING)) |
|---|
| 248 |
|
|---|
| 249 |
cant = ACS_DEFAULT; |
|---|
| 250 |
if (!add_access_node(buf, who, can, cant, comment, &errptr)) |
|---|
| 251 |
do_log(LT_ERR, GOD, GOD, T("Failed to add access node: %s"), |
|---|
| 252 |
errptr); |
|---|
| 253 |
} |
|---|
| 254 |
} |
|---|
| 255 |
} |
|---|
| 256 |
retval = 1; |
|---|
| 257 |
fclose(fp); |
|---|
| 258 |
} |
|---|
| 259 |
reserve_fd(); |
|---|
| 260 |
return retval; |
|---|
| 261 |
} |
|---|
| 262 |
|
|---|
| 263 |
|
|---|
| 264 |
|
|---|
| 265 |
|
|---|
| 266 |
void |
|---|
| 267 |
write_access_file(void) |
|---|
| 268 |
{ |
|---|
| 269 |
FILE *fp; |
|---|
| 270 |
char tmpf[BUFFER_LEN]; |
|---|
| 271 |
struct access *ap; |
|---|
| 272 |
acsflag *c; |
|---|
| 273 |
|
|---|
| 274 |
snprintf(tmpf, BUFFER_LEN, "%s.tmp", ACCESS_FILE); |
|---|
| 275 |
|
|---|
| 276 |
release_fd(); |
|---|
| 277 |
fp = fopen(tmpf, FOPEN_WRITE); |
|---|
| 278 |
if (!fp) { |
|---|
| 279 |
do_log(LT_ERR, GOD, GOD, T("Unable to open %s."), tmpf); |
|---|
| 280 |
} else { |
|---|
| 281 |
for (ap = access_top; ap; ap = ap->next) { |
|---|
| 282 |
if (strcmp(ap->host, "@sitelock") == 0) { |
|---|
| 283 |
fprintf(fp, "@sitelock\n"); |
|---|
| 284 |
continue; |
|---|
| 285 |
} |
|---|
| 286 |
fprintf(fp, "%s %d ", ap->host, ap->who); |
|---|
| 287 |
switch (ap->can) { |
|---|
| 288 |
case ACS_SITELOCK: |
|---|
| 289 |
break; |
|---|
| 290 |
case ACS_DEFAULT: |
|---|
| 291 |
fprintf(fp, "DEFAULT "); |
|---|
| 292 |
break; |
|---|
| 293 |
default: |
|---|
| 294 |
for (c = acslist; c->name; c++) |
|---|
| 295 |
if (ap->can & c->flag) |
|---|
| 296 |
fprintf(fp, "%s ", c->name); |
|---|
| 297 |
break; |
|---|
| 298 |
} |
|---|
| 299 |
switch (ap->cant) { |
|---|
| 300 |
case ACS_DEFAULT: |
|---|
| 301 |
fprintf(fp, "NONE "); |
|---|
| 302 |
break; |
|---|
| 303 |
default: |
|---|
| 304 |
for (c = acslist; c->name; c++) |
|---|
| 305 |
if (c->toggle && (ap->cant & c->flag)) |
|---|
| 306 |
fprintf(fp, "!%s ", c->name); |
|---|
| 307 |
break; |
|---|
| 308 |
} |
|---|
| 309 |
if (ap->comment && *ap->comment) |
|---|
| 310 |
fprintf(fp, "# %s\n", ap->comment); |
|---|
| 311 |
else |
|---|
| 312 |
fprintf(fp, "\n"); |
|---|
| 313 |
} |
|---|
| 314 |
fclose(fp); |
|---|
| 315 |
rename_file(tmpf, ACCESS_FILE); |
|---|
| 316 |
} |
|---|
| 317 |
reserve_fd(); |
|---|
| 318 |
return; |
|---|
| 319 |
} |
|---|
| 320 |
|
|---|
| 321 |
#ifdef FORCE_IPV4 |
|---|
| 322 |
static char * |
|---|
| 323 |
ip4_to_ip6(const char *addr) |
|---|
| 324 |
{ |
|---|
| 325 |
static char tbuf1[BUFFER_LEN]; |
|---|
| 326 |
char *bp; |
|---|
| 327 |
bp = tbuf1; |
|---|
| 328 |
safe_format(tbuf1, &bp, "::ffff:%s", addr); |
|---|
| 329 |
*bp = '\0'; |
|---|
| 330 |
return tbuf1; |
|---|
| 331 |
} |
|---|
| 332 |
#endif |
|---|
| 333 |
|
|---|
| 334 |
|
|---|
| 335 |
|
|---|
| 336 |
|
|---|
| 337 |
|
|---|
| 338 |
|
|---|
| 339 |
|
|---|
| 340 |
|
|---|
| 341 |
|
|---|
| 342 |
|
|---|
| 343 |
|
|---|
| 344 |
|
|---|
| 345 |
|
|---|
| 346 |
|
|---|
| 347 |
|
|---|
| 348 |
|
|---|
| 349 |
|
|---|
| 350 |
|
|---|
| 351 |
|
|---|
| 352 |
|
|---|
| 353 |
|
|---|
| 354 |
bool |
|---|
| 355 |
site_can_access(const char *hname, uint32_t flag, dbref who) |
|---|
| 356 |
{ |
|---|
| 357 |
struct access *ap; |
|---|
| 358 |
acsflag *c; |
|---|
| 359 |
const char *p; |
|---|
| 360 |
|
|---|
| 361 |
if (!hname || !*hname) |
|---|
| 362 |
return 0; |
|---|
| 363 |
|
|---|
| 364 |
if ((p = strchr(hname, '@'))) |
|---|
| 365 |
p++; |
|---|
| 366 |
|
|---|
| 367 |
for (ap = access_top; ap; ap = ap->next) { |
|---|
| 368 |
if (!(ap->can & ACS_SITELOCK) |
|---|
| 369 |
&& ((ap->can & ACS_REGEXP) |
|---|
| 370 |
? (qcomp_regexp_match(ap->re, hname) |
|---|
| 371 |
|| (p && qcomp_regexp_match(ap->re, p)) |
|---|
| 372 |
#ifdef FORCE_IPV4 |
|---|
| 373 |
|| qcomp_regexp_match(ip4_to_ip6(ap->re), hname) |
|---|
| 374 |
|| (p && qcomp_regexp_match(ip4_to_ip6(ap->re), p)) |
|---|
| 375 |
#endif |
|---|
| 376 |
) |
|---|
| 377 |
: (quick_wild(ap->host, hname) |
|---|
| 378 |
|| (p && quick_wild(ap->host, p)) |
|---|
| 379 |
#ifdef FORCE_IPV4 |
|---|
| 380 |
|| quick_wild(ip4_to_ip6(ap->host), hname) |
|---|
| 381 |
|| (p && quick_wild(ip4_to_ip6(ap->host), p)) |
|---|
| 382 |
#endif |
|---|
| 383 |
)) |
|---|
| 384 |
&& (ap->who == AMBIGUOUS || ap->who == who)) { |
|---|
| 385 |
|
|---|
| 386 |
if (flag & ACS_CONNECT) { |
|---|
| 387 |
if ((ap->cant & ACS_GOD) && God(who)) |
|---|
| 388 |
return 0; |
|---|
| 389 |
else if ((ap->cant & ACS_WIZARD) && Wizard(who)) |
|---|
| 390 |
|
|---|
| 391 |
return 0; |
|---|
| 392 |
else if ((ap->cant & ACS_ADMIN) && Hasprivs(who)) |
|---|
| 393 |
|
|---|
| 394 |
return 0; |
|---|
| 395 |
} |
|---|
| 396 |
if (ap->cant && ((ap->cant & flag) == flag)) |
|---|
| 397 |
return 0; |
|---|
| 398 |
if (ap->can && (ap->can & flag)) |
|---|
| 399 |
return 1; |
|---|
| 400 |
|
|---|
| 401 |
|
|---|
| 402 |
break; |
|---|
| 403 |
} |
|---|
| 404 |
} |
|---|
| 405 |
|
|---|
| 406 |
|
|---|
| 407 |
|
|---|
| 408 |
for (c = acslist; c->name; c++) { |
|---|
| 409 |
if (flag & c->flag) |
|---|
| 410 |
return c->toggle ? 1 : 0; |
|---|
| 411 |
} |
|---|
| 412 |
|
|---|
| 413 |
return 1; |
|---|
| 414 |
} |
|---|
| 415 |
|
|---|
| 416 |
|
|---|
| 417 |
|
|---|
| 418 |
|
|---|
| 419 |
|
|---|
| 420 |
|
|---|
| 421 |
|
|---|
| 422 |
|
|---|
| 423 |
struct access * |
|---|
| 424 |
site_check_access(const char *hname, dbref who, int *rulenum) |
|---|
| 425 |
{ |
|---|
| 426 |
struct access *ap; |
|---|
| 427 |
const char *p; |
|---|
| 428 |
|
|---|
| 429 |
*rulenum = 0; |
|---|
| 430 |
if (!hname || !*hname) |
|---|
| 431 |
return 0; |
|---|
| 432 |
|
|---|
| 433 |
if ((p = strchr(hname, '@'))) |
|---|
| 434 |
p++; |
|---|
| 435 |
|
|---|
| 436 |
for (ap = access_top; ap; ap = ap->next) { |
|---|
| 437 |
(*rulenum)++; |
|---|
| 438 |
if (!(ap->can & ACS_SITELOCK) |
|---|
| 439 |
&& ((ap->can & ACS_REGEXP) |
|---|
| 440 |
? (qcomp_regexp_match(ap->re, hname) |
|---|
| 441 |
|| (p && qcomp_regexp_match(ap->re, p)) |
|---|
| 442 |
#ifdef FORCE_IPV4 |
|---|
| 443 |
|| qcomp_regexp_match(ip4_to_ip6(ap->host), hname) |
|---|
| 444 |
|| (p && qcomp_regexp_match(ip4_to_ip6(ap->host), p)) |
|---|
| 445 |
#endif |
|---|
| 446 |
) |
|---|
| 447 |
: (quick_wild(ap->host, hname) |
|---|
| 448 |
|| (p && quick_wild(ap->host, p)) |
|---|
| 449 |
#ifdef FORCE_IPV4 |
|---|
| 450 |
|| quick_wild(ip4_to_ip6(ap->host), hname) |
|---|
| 451 |
|| (p && quick_wild(ip4_to_ip6(ap->host), p)) |
|---|
| 452 |
#endif |
|---|
| 453 |
)) |
|---|
| 454 |
&& (ap->who == AMBIGUOUS || ap->who == who)) { |
|---|
| 455 |
|
|---|
| 456 |
return ap; |
|---|
| 457 |
} |
|---|
| 458 |
} |
|---|
| 459 |
return NULL; |
|---|
| 460 |
} |
|---|
| 461 |
|
|---|
| 462 |
|
|---|
| 463 |
|
|---|
| 464 |
|
|---|
| 465 |
|
|---|
| 466 |
|
|---|
| 467 |
|
|---|
| 468 |
|
|---|
| 469 |
|
|---|
| 470 |
|
|---|
| 471 |
void |
|---|
| 472 |
format_access(struct access *ap, int rulenum, |
|---|
| 473 |
dbref who __attribute__ ((__unused__)), char *buff, char **bp) |
|---|
| 474 |
{ |
|---|
| 475 |
if (ap) { |
|---|
| 476 |
safe_format(buff, bp, T("Matched line %d: %s %s"), rulenum, ap->host, |
|---|
| 477 |
(ap->can & ACS_REGEXP) ? "(regexp)" : ""); |
|---|
| 478 |
safe_chr('\n', buff, bp); |
|---|
| 479 |
safe_format(buff, bp, T("Comment: %s"), ap->comment); |
|---|
| 480 |
safe_chr('\n', buff, bp); |
|---|
| 481 |
safe_str(T("Connections allowed by: "), buff, bp); |
|---|
| 482 |
if (ap->cant & ACS_CONNECT) |
|---|
| 483 |
safe_str(T("No one"), buff, bp); |
|---|
| 484 |
else if (ap->cant & ACS_ADMIN) |
|---|
| 485 |
safe_str(T("All but admin"), buff, bp); |
|---|
| 486 |
else if (ap->cant & ACS_WIZARD) |
|---|
| 487 |
safe_str(T("All but wizards"), buff, bp); |
|---|
| 488 |
else if (ap->cant & ACS_GOD) |
|---|
| 489 |
safe_str(T("All but God"), buff, bp); |
|---|
| 490 |
else |
|---|
| 491 |
safe_str(T("All"), buff, bp); |
|---|
| 492 |
safe_chr('\n', buff, bp); |
|---|
| 493 |
if (ap->cant & ACS_GUEST) |
|---|
| 494 |
safe_str(T("Guest connections are NOT allowed"), buff, bp); |
|---|
| 495 |
else |
|---|
| 496 |
safe_str(T("Guest connections are allowed"), buff, bp); |
|---|
| 497 |
safe_chr('\n', buff, bp); |
|---|
| 498 |
if (ap->cant & ACS_CREATE) |
|---|
| 499 |
safe_str(T("Creation is NOT allowed"), buff, bp); |
|---|
| 500 |
else |
|---|
| 501 |
safe_str(T("Creation is allowed"), buff, bp); |
|---|
| 502 |
safe_chr('\n', buff, bp); |
|---|
| 503 |
if (ap->can & ACS_REGISTER) |
|---|
| 504 |
safe_str(T("Email registration is allowed"), buff, bp); |
|---|
| 505 |
if (ap->can & ACS_SUSPECT) |
|---|
| 506 |
safe_str(T("Players connecting are set SUSPECT"), buff, bp); |
|---|
| 507 |
if (ap->can & ACS_DENY_SILENT) |
|---|
| 508 |
safe_str(T("Denied connections are not logged"), buff, bp); |
|---|
| 509 |
} else { |
|---|
| 510 |
safe_str(T("No matching access rule"), buff, bp); |
|---|
| 511 |
} |
|---|
| 512 |
} |
|---|
| 513 |
|
|---|
| 514 |
|
|---|
| 515 |
|
|---|
| 516 |
|
|---|
| 517 |
|
|---|
| 518 |
|
|---|
| 519 |
|
|---|
| 520 |
|
|---|
| 521 |
|
|---|
| 522 |
|
|---|
| 523 |
|
|---|
| 524 |
|
|---|
| 525 |
|
|---|