Crossfire Server, Trunk
|
#include "global.h"
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "sproto.h"
#include <sys/ioctl.h>
#include <sys/file.h>
Go to the source code of this file.
Functions | |
int | checkbanned (const char *login, const char *host) |
This code was grabbed from the Netrek source and modified to work with Crossfire.
Definition in file ban.cpp.
int checkbanned | ( | const char * | login, |
const char * | host | ||
) |
Check if a player and/or host is banned. Wildcards can be used.
login | player name to check; NULL to check only the host name. |
host | host name to check. |
Definition at line 32 of file ban.cpp.
References BANFILE, BANISHFILE, buf, Settings::confdir, llevDebug, Settings::localdir, LOG(), MAX_BUF, and settings.
Referenced by new_connection(), and receive_player_password().