Main Page | Class List | File List | Class Members | File Members

CountryFilter.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include "CountryFilter.h"
#include "MRecipientFilter.h"

Include dependency graph for CountryFilter.cpp:

Go to the source code of this file.

Defines

#define LOAD_EINTERFACE(var, type, version, name)
#define LOAD_EINTERFACE_OPT(var, type, version, name)   ((var = (type *)interfaceFactory(version, 0)), false) ||
#define LOAD_GINTERFACE(var, type, version, name)
#define LOAD_GINTERFACE_OPT(var, type, version, name)   ((var = (type *)gameServerFactory(version, 0)), false) ||
#define LOAD_INTERFACES_BEGIN   if (
#define LOAD_INTERFACES_END   false) return false;

Functions

 EXPOSE_SINGLE_INTERFACE_GLOBALVAR (CountryFilter, IServerPluginCallbacks, INTERFACEVERSION_ISERVERPLUGINCALLBACKS, g_CF)
ConVar g_Version ("cf_version","1.0.3", 0,"CountryFilter version.")
 version
ConVar g_AllowMessage ("cf_allow_message","%s (Country: %s) was allowed to connect.", 0,"Message format when player was allowed to connect.")
ConVar g_DenyMessage ("cf_deny_message","%s (Country: %s) was rejected by CountryFilter.", 0,"Message format when player was denied to connect.")
ConVar g_MessageExcludeFrom ("cf_message_exclude_from","", 0,"Specify the country(s) which is excluded from printing messages. ex.1) \"JP US --\" ex.2) \"all\"")
ConVar g_Order ("cf_order","deny,allow", 0,"Controls the default access state and the order in which cf_allow_from and cf_deny_from are evaluated. ex1) \"deny,allow\" (default) ex2) \"allow,deny\"")
ConVar g_AllowFrom ("cf_allow_from","all", 0,"Specify the country(s) which is allowed to connect. ex.1) \"JP US --\" ex.2) \"all\"")
ConVar g_DenyFrom ("cf_deny_from","", 0,"Specify the country(s) which is deny to connect. ex.1) \"all\" ex.2) \"JP US --\"")
ConVar g_CountryPrintMode ("cf_country_print_mode","code", 0,"Sets country print mode. Allowed values: \"code\" (default), \"code3\" and \"name\".")
ConVar g_StatusCommandAlias ("cf_status_command_alias","listplayers", 0,"Sets alias of status command. ex.) \"listplayers\" (default).")
ConVar g_ForceChangeName ("cf_force_change_name","0", 0,"*** EXPERIMENTAL ***: Adding the country tag to player name. 0: off (default), 1: on.")
ConVar g_CountryTag ("cf_country_tag","%s|", 0,"*** EXPERIMENTAL ***: Specify the country tag format.")

Variables

CountryFilter g_CF


Define Documentation

#define LOAD_EINTERFACE var,
type,
version,
name   ) 
 

Value:

!((var = (type *)interfaceFactory(version, 0)) \
        || (Error("[CF] Could not load %s interface\n", name), false)) ||

Definition at line 35 of file CountryFilter.cpp.

Referenced by CountryFilter::Load().

#define LOAD_EINTERFACE_OPT var,
type,
version,
name   )     ((var = (type *)interfaceFactory(version, 0)), false) ||
 

Definition at line 37 of file CountryFilter.cpp.

#define LOAD_GINTERFACE var,
type,
version,
name   ) 
 

Value:

!((var = (type *)gameServerFactory(version, 0)) \
        || (Error("[CF] Could not load %s interface\n", name), false)) ||

Definition at line 39 of file CountryFilter.cpp.

Referenced by CountryFilter::Load().

#define LOAD_GINTERFACE_OPT var,
type,
version,
name   )     ((var = (type *)gameServerFactory(version, 0)), false) ||
 

Definition at line 41 of file CountryFilter.cpp.

#define LOAD_INTERFACES_BEGIN   if (
 

Definition at line 43 of file CountryFilter.cpp.

Referenced by CountryFilter::Load().

#define LOAD_INTERFACES_END   false) return false;
 

Definition at line 44 of file CountryFilter.cpp.

Referenced by CountryFilter::Load().


Function Documentation

EXPOSE_SINGLE_INTERFACE_GLOBALVAR CountryFilter  ,
IServerPluginCallbacks  ,
INTERFACEVERSION_ISERVERPLUGINCALLBACKS  ,
g_CF 
 

ConVar g_AllowFrom "cf_allow_from"  ,
"all"  ,
,
"Specify the country(s) which is allowed to connect. ex.  1
 

ConVar g_AllowMessage "cf_allow_message"  ,
"%s (Country: %s) was allowed to connect."  ,
,
"Message format when player was allowed to connect." 
 

ConVar g_CountryPrintMode "cf_country_print_mode"  ,
"code"  ,
,
"Sets country print mode. Allowed values: \"code\"   (default),
\"code3\" and \"name\"." 
 

ConVar g_CountryTag "cf_country_tag"  ,
"%s|"  ,
,
"*** EXPERIMENTAL ***: Specify the country tag format." 
 

ConVar g_DenyFrom "cf_deny_from"  ,
""  ,
,
"Specify the country(s) which is deny to connect. ex.  1
 

ConVar g_DenyMessage "cf_deny_message"  ,
"%s (Country: %s) was rejected by CountryFilter."  ,
,
"Message format when player was denied to connect." 
 

ConVar g_ForceChangeName "cf_force_change_name"  ,
"0"  ,
,
"*** EXPERIMENTAL ***: Adding the country tag to player name. 0: off   (default),
1:on." 
 

ConVar g_MessageExcludeFrom "cf_message_exclude_from"  ,
""  ,
,
"Specify the country(s) which is excluded from printing messages. ex.  1
 

ConVar g_Order "cf_order"  ,
deny,
allow"  ,
,
"Controls the default access state and the order in which cf_allow_from and cf_deny_from are evaluated.   ex1
 

ConVar g_StatusCommandAlias "cf_status_command_alias"  ,
"listplayers"  ,
,
"Sets alias of status command.   ex.
 

ConVar g_Version "cf_version"  ,
"1.0.3"  ,
,
"CountryFilter version." 
 

version


Variable Documentation

CountryFilter g_CF
 

Definition at line 28 of file CountryFilter.cpp.


Generated on Tue Jun 28 01:09:08 2005 for CountryFilter by  doxygen 1.4.3-20050623