TinyMUSH 3.3
TinyMUSH Server
Loading...
Searching...
No Matches
Functions
funext.c File Reference

Functions that rely on external call-outs. More...

#include "config.h"
#include "constants.h"
#include "typedefs.h"
#include "macros.h"
#include "externs.h"
#include "prototypes.h"
#include <stdbool.h>
#include <ctype.h>
#include <string.h>
Include dependency graph for funext.c:

Functions

void fun_config (char *buff, char **bufc, dbref player, dbref caller __attribute__((unused)), dbref cause __attribute__((unused)), char *fargs[], int nfargs __attribute__((unused)), char *cargs[] __attribute__((unused)), int ncargs __attribute__((unused)))
 Return a MUSH config parameter. More...
 
void fun_lwho (char *buff, char **bufc, dbref player, dbref caller __attribute__((unused)), dbref cause __attribute__((unused)), char *fargs[] __attribute__((unused)), int nfargs __attribute__((unused)), char *cargs[] __attribute__((unused)), int ncargs __attribute__((unused)))
 Return list of connected users. More...
 
void fun_ports (char *buff, char **bufc, dbref player, dbref caller __attribute__((unused)), dbref cause __attribute__((unused)), char *fargs[], int nfargs, char *cargs[] __attribute__((unused)), int ncargs __attribute__((unused)))
 Returns a list of ports for a user. More...
 
void fun_doing (char *buff, char **bufc, dbref player, dbref caller __attribute__((unused)), dbref cause __attribute__((unused)), char *fargs[], int nfargs __attribute__((unused)), char *cargs[] __attribute__((unused)), int ncargs __attribute__((unused)))
 Returns a user's doing. More...
 
void handle_conninfo (char *buff, char **bufc, dbref player, dbref caller __attribute__((unused)), dbref cause __attribute__((unused)), char *fargs[], int nfargs __attribute__((unused)), char *cargs[] __attribute__((unused)), int ncargs __attribute__((unused)))
 Return seconds idle or connected (IDLE, CONN). More...
 
void fun_session (char *buff, char **bufc, dbref player, dbref caller __attribute__((unused)), dbref cause __attribute__((unused)), char *fargs[], int nfargs __attribute__((unused)), char *cargs[] __attribute__((unused)), int ncargs __attribute__((unused)))
 Return session info about a port. More...
 
void fun_programmer (char *buff, char **bufc, dbref player, dbref caller __attribute__((unused)), dbref cause __attribute__((unused)), char *fargs[], int nfargs __attribute__((unused)), char *cargs[] __attribute__((unused)), int ncargs __attribute__((unused)))
 Returns the dbref or #1- of an object in a @program. More...
 
void fun_helptext (char *buff, char **bufc, dbref player, dbref caller __attribute__((unused)), dbref cause __attribute__((unused)), char *fargs[], int nfargs __attribute__((unused)), char *cargs[], int ncargs)
 Read an entry from a helpfile. More...
 
void fun_html_escape (char *buff, char **bufc, dbref player __attribute__((unused)), dbref caller __attribute__((unused)), dbref cause __attribute__((unused)), char *fargs[], int nfargs __attribute__((unused)), char *cargs[] __attribute__((unused)), int ncargs __attribute__((unused)))
 Pueblo HTML-related functions. More...
 
void fun_html_unescape (char *buff, char **bufc, dbref player __attribute__((unused)), dbref caller __attribute__((unused)), dbref cause __attribute__((unused)), char *fargs[], int nfargs __attribute__((unused)), char *cargs[] __attribute__((unused)), int ncargs __attribute__((unused)))
 Un-escape HTML. More...
 
bool escaped_chars (unsigned char ch)
 Check if a characters should be converted to %<hex> More...
 
void fun_url_escape (char *buff, char **bufc, dbref player __attribute__((unused)), dbref caller __attribute__((unused)), dbref cause __attribute__((unused)), char *fargs[], int nfargs __attribute__((unused)), char *cargs[] __attribute__((unused)), int ncargs __attribute__((unused)))
 Escape URL. More...
 
void fun_url_unescape (char *buff, char **bufc, dbref player __attribute__((unused)), dbref caller __attribute__((unused)), dbref cause __attribute__((unused)), char *fargs[], int nfargs __attribute__((unused)), char *cargs[] __attribute__((unused)), int ncargs __attribute__((unused)))
 Un-escape URL. More...
 

Detailed Description

Functions that rely on external call-outs.

Author
TinyMUSH development team (https://github.com/TinyMUSH)
Version
3.3
Date
2021-01-04

Function Documentation

◆ escaped_chars()

bool escaped_chars ( unsigned char  ch)

Check if a characters should be converted to %<hex>

Parameters
chCharacter to check
Returns
true Convert to hex
false Keep as is.

◆ fun_config()

void fun_config ( char *  buff,
char **  bufc,
dbref  player,
dbref caller   __attribute__(unused),
dbref cause   __attribute__(unused),
char *  fargs[],
int nfargs   __attribute__(unused),
char *cargs[]  __attribute__(unused),
int ncargs   __attribute__(unused) 
)

Return a MUSH config parameter.

Parameters
buffOutput buffer
bufcOutput buffer tracker
playerDBref of player
callerNot used
causeNot used
fargsFunctions arguments
nfargsNot used
cargsNot used
ncargsNot used

◆ fun_doing()

void fun_doing ( char *  buff,
char **  bufc,
dbref  player,
dbref caller   __attribute__(unused),
dbref cause   __attribute__(unused),
char *  fargs[],
int nfargs   __attribute__(unused),
char *cargs[]  __attribute__(unused),
int ncargs   __attribute__(unused) 
)

Returns a user's doing.

Parameters
buffOutput buffer
bufcOutput buffer tracker
playerDBref of player
callerNot used
causeNot used
fargsFunction arguments
nfargsNot used
cargsNot used
ncargsNot used

◆ fun_helptext()

void fun_helptext ( char *  buff,
char **  bufc,
dbref  player,
dbref caller   __attribute__(unused),
dbref cause   __attribute__(unused),
char *  fargs[],
int nfargs   __attribute__(unused),
char *  cargs[],
int  ncargs 
)

Read an entry from a helpfile.

Parameters
buffOutput buffer
bufcOutput buffer tracker
playerDBref of player
callerNot used
causeNot used
fargsFunction arguments
nfargsNot used
cargsNot used
ncargsNot used

◆ fun_html_escape()

void fun_html_escape ( char *  buff,
char **  bufc,
dbref player   __attribute__(unused),
dbref caller   __attribute__(unused),
dbref cause   __attribute__(unused),
char *  fargs[],
int nfargs   __attribute__(unused),
char *cargs[]  __attribute__(unused),
int ncargs   __attribute__(unused) 
)

Pueblo HTML-related functions.

Escape HTML

Parameters
buffOutput buffer
bufcOutput buffer tracker
playerDBref of player
callerNot used
causeNot used
fargsFunction arguments
nfargsNot used
cargsNot used
ncargsNot used

◆ fun_html_unescape()

void fun_html_unescape ( char *  buff,
char **  bufc,
dbref player   __attribute__(unused),
dbref caller   __attribute__(unused),
dbref cause   __attribute__(unused),
char *  fargs[],
int nfargs   __attribute__(unused),
char *cargs[]  __attribute__(unused),
int ncargs   __attribute__(unused) 
)

Un-escape HTML.

Parameters
buffOutput buffer
bufcOutput buffer tracker
playerDBref of player
callerNot used
causeNot used
fargsFunction arguments
nfargsNot used
cargsNot used
ncargsNot used

◆ fun_lwho()

void fun_lwho ( char *  buff,
char **  bufc,
dbref  player,
dbref caller   __attribute__(unused),
dbref cause   __attribute__(unused),
char *fargs[]  __attribute__(unused),
int nfargs   __attribute__(unused),
char *cargs[]  __attribute__(unused),
int ncargs   __attribute__(unused) 
)

Return list of connected users.

Parameters
buffOutput buffer
bufcOutput buffer tracker
playerDBref of player
callerNot used
causeNot used
fargsNot used
nfargsNot used
cargsNot used
ncargsNot used

◆ fun_ports()

void fun_ports ( char *  buff,
char **  bufc,
dbref  player,
dbref caller   __attribute__(unused),
dbref cause   __attribute__(unused),
char *  fargs[],
int  nfargs,
char *cargs[]  __attribute__(unused),
int ncargs   __attribute__(unused) 
)

Returns a list of ports for a user.

Parameters
buffOutput buffer
bufcOutput buffer tracker
playerDBref of player
callerNot used
causeNot used
fargsFunction arguments
nfargsNumber of function arguments
cargsNot used
ncargsNot used

◆ fun_programmer()

void fun_programmer ( char *  buff,
char **  bufc,
dbref  player,
dbref caller   __attribute__(unused),
dbref cause   __attribute__(unused),
char *  fargs[],
int nfargs   __attribute__(unused),
char *cargs[]  __attribute__(unused),
int ncargs   __attribute__(unused) 
)

Returns the dbref or #1- of an object in a @program.

Parameters
buffOutput buffer
bufcOutput buffer tracker
playerDBref of player
callerNot used
causeNot used
fargsFunction arguments
nfargsNot used
cargsNot used
ncargsNot used

◆ fun_session()

void fun_session ( char *  buff,
char **  bufc,
dbref  player,
dbref caller   __attribute__(unused),
dbref cause   __attribute__(unused),
char *  fargs[],
int nfargs   __attribute__(unused),
char *cargs[]  __attribute__(unused),
int ncargs   __attribute__(unused) 
)

Return session info about a port.

Parameters
buffOutput buffer
bufcOutput buffer tracker
playerDBref of player
callerNot used
causeNot used
fargsFunction arguments
nfargsNot used
cargsNot used
ncargsNot used

◆ fun_url_escape()

void fun_url_escape ( char *  buff,
char **  bufc,
dbref player   __attribute__(unused),
dbref caller   __attribute__(unused),
dbref cause   __attribute__(unused),
char *  fargs[],
int nfargs   __attribute__(unused),
char *cargs[]  __attribute__(unused),
int ncargs   __attribute__(unused) 
)

Escape URL.

Parameters
buffOutput buffer
bufcOutput buffer tracker
playerDBref of player
callerNot used
causeNot used
fargsFunction arguments
nfargsNot used
cargsNot used
ncargsNot used

◆ fun_url_unescape()

void fun_url_unescape ( char *  buff,
char **  bufc,
dbref player   __attribute__(unused),
dbref caller   __attribute__(unused),
dbref cause   __attribute__(unused),
char *  fargs[],
int nfargs   __attribute__(unused),
char *cargs[]  __attribute__(unused),
int ncargs   __attribute__(unused) 
)

Un-escape URL.

Parameters
buffOutput buffer
bufcOutput buffer tracker
playerDBref of player
callerNot used
causeNot used
fargsFunction arguments
nfargsNot used
cargsNot used
ncargsNot used

Skip the ''

Skip the 1st hex character.

Skip the 2nd hex character.

◆ handle_conninfo()

void handle_conninfo ( char *  buff,
char **  bufc,
dbref  player,
dbref caller   __attribute__(unused),
dbref cause   __attribute__(unused),
char *  fargs[],
int nfargs   __attribute__(unused),
char *cargs[]  __attribute__(unused),
int ncargs   __attribute__(unused) 
)

Return seconds idle or connected (IDLE, CONN).

Parameters
buffOutput buffer
bufcOutput buffer tracker
playerDBref of player
callerNot used
causeNot used
fargsFunction arguments
nfargsNot used
cargsNot used
ncargsNot used