Freeciv-3.3
Loading...
Searching...
No Matches
Functions
api_fcdb_auth.c File Reference
#include "log.h"
#include "connection.h"
#include "luascript.h"
#include "auth.h"
#include "connecthand.h"
#include "script_fcdb.h"
#include "api_fcdb_auth.h"

Go to the source code of this file.

Functions

const charapi_auth_get_username (lua_State *L, Connection *pconn)
 
const charapi_auth_get_ipaddr (lua_State *L, Connection *pconn)
 
int api_auth_get_cmdlevel (lua_State *L, Connection *pconn)
 
void api_auth_set_cmdlevel (lua_State *L, Connection *pconn, int level)
 

Function Documentation

◆ api_auth_get_cmdlevel()

int api_auth_get_cmdlevel ( lua_State L,
Connection pconn 
)

Get the access level.

Definition at line 63 of file api_fcdb_auth.c.

Referenced by tolua_fcdb_auth_get_cmdlevel00().

◆ api_auth_get_ipaddr()

const char * api_auth_get_ipaddr ( lua_State L,
Connection pconn 
)

Get the ip address.

Definition at line 51 of file api_fcdb_auth.c.

Referenced by tolua_fcdb_auth_get_ipaddr00().

◆ api_auth_get_username()

const char * api_auth_get_username ( lua_State L,
Connection pconn 
)

Get the username.

Definition at line 39 of file api_fcdb_auth.c.

Referenced by tolua_fcdb_auth_get_username00().

◆ api_auth_set_cmdlevel()

void api_auth_set_cmdlevel ( lua_State L,
Connection pconn,
int  level 
)

Set the access level.

Definition at line 75 of file api_fcdb_auth.c.

Referenced by tolua_fcdb_auth_set_cmdlevel00().