const char * api_auth_get_username(lua_State *L, Connection *pconn)
void api_auth_set_cmdlevel(lua_State *L, Connection *pconn, int level)
int api_auth_get_cmdlevel(lua_State *L, Connection *pconn)
const char * api_auth_get_ipaddr(lua_State *L, Connection *pconn)
const char * auth_get_username(struct connection *pconn)
const char * auth_get_ipaddr(struct connection *pconn)
void conn_set_access(struct connection *pconn, enum cmdlevel new_level, bool granted)
enum cmdlevel conn_get_access(const struct connection *pconn)
bool conn_is_valid(const struct connection *pconn)
#define fc_assert_ret(condition)
#define fc_assert_ret_val(condition, val)
#define LUASCRIPT_CHECK_STATE(L,...)
#define LUASCRIPT_CHECK_SELF(L, value,...)
struct setting_list * level[OLEVELS_NUM]