Crossfire Server, Branches 1.12  R18729
ban.c File Reference
#include <global.h>
#include <sproto.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <stdio.h>
#include <sys/file.h>
+ Include dependency graph for ban.c:

Go to the source code of this file.

Functions

int checkbanned (const char *login, const char *host)
 

Detailed Description

This code was grabbed from the Netrek source and modified to work with Crossfire.

Definition in file ban.c.

Function Documentation

int checkbanned ( const char *  login,
const char *  host 
)

Check if a player and/or host is banned. Wildcards can be used.

Parameters
loginplayer name to check; NULL to check only the host name.
hosthost name to check.
Returns
1=player/host is banned; 0=player/host is not banned

Definition at line 38 of file ban.c.

References BANFILE, BANISHFILE, Settings::confdir, llevDebug, Settings::localdir, LOG(), MAX_BUF, settings, and snprintf().

Referenced by do_server(), and receive_player_password().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: