Atrinik Client 2.5
Functions | Variables
client/ignore.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

static void ignore_entry_add (const char *name, const char *type)
static int ignore_entry_remove (const char *name, const char *type)
void ignore_list_clear ()
void ignore_list_load ()
static void ignore_list_save ()
int ignore_check (const char *name, const char *type)
void ignore_command (const char *cmd)

Variables

static ignore_list_structignore_list = NULL

Detailed Description

This file holds ignore list related code.

Definition in file ignore.c.


Function Documentation

int ignore_check ( const char *  name,
const char *  type 
)

Check whether the specified player name is ignored.

Parameters:
nameName to check for.
typeType of the ignore to check for.
Returns:
1 if the player name is ignored, 0 otherwise.

Definition at line 151 of file ignore.c.

void ignore_command ( const char *  cmd)

Parse /ignore command.

Parameters:
cmdThe command to parse, without the "/ignore" part.

Definition at line 169 of file ignore.c.

static void ignore_entry_add ( const char *  name,
const char *  type 
) [static]

Add an entry to the ignore list.

Parameters:
nameName to ignore.
typeType of the ignore.

Definition at line 39 of file ignore.c.

static int ignore_entry_remove ( const char *  name,
const char *  type 
) [static]

Remove an entry from the ignore list.

Parameters:
nameName to remove.
typeType of the ignore.
Returns:
1 if the entry was removed, 0 otherwise.

Definition at line 57 of file ignore.c.

void ignore_list_clear ( )

Clear the ignore list.

Definition at line 84 of file ignore.c.

void ignore_list_load ( )

Clear the ignore list and load it from a file.

Definition at line 99 of file ignore.c.

static void ignore_list_save ( ) [static]

Save the ignore list to a file.

Definition at line 125 of file ignore.c.


Variable Documentation

ignore_list_struct* ignore_list = NULL [static]

The ignore list.

Definition at line 33 of file ignore.c.