TinyMUSH 3.3
TinyMUSH Server
|
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>
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... | |
Functions that rely on external call-outs.
bool escaped_chars | ( | unsigned char | ch | ) |
Check if a characters should be converted to %<hex>
ch | Character to check |
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.
buff | Output buffer |
bufc | Output buffer tracker |
player | DBref of player |
caller | Not used |
cause | Not used |
fargs | Functions arguments |
nfargs | Not used |
cargs | Not used |
ncargs | Not used |
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.
buff | Output buffer |
bufc | Output buffer tracker |
player | DBref of player |
caller | Not used |
cause | Not used |
fargs | Function arguments |
nfargs | Not used |
cargs | Not used |
ncargs | Not used |
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.
buff | Output buffer |
bufc | Output buffer tracker |
player | DBref of player |
caller | Not used |
cause | Not used |
fargs | Function arguments |
nfargs | Not used |
cargs | Not used |
ncargs | Not used |
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
buff | Output buffer |
bufc | Output buffer tracker |
player | DBref of player |
caller | Not used |
cause | Not used |
fargs | Function arguments |
nfargs | Not used |
cargs | Not used |
ncargs | Not used |
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.
buff | Output buffer |
bufc | Output buffer tracker |
player | DBref of player |
caller | Not used |
cause | Not used |
fargs | Function arguments |
nfargs | Not used |
cargs | Not used |
ncargs | Not used |
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.
buff | Output buffer |
bufc | Output buffer tracker |
player | DBref of player |
caller | Not used |
cause | Not used |
fargs | Not used |
nfargs | Not used |
cargs | Not used |
ncargs | Not used |
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.
buff | Output buffer |
bufc | Output buffer tracker |
player | DBref of player |
caller | Not used |
cause | Not used |
fargs | Function arguments |
nfargs | Number of function arguments |
cargs | Not used |
ncargs | Not used |
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.
buff | Output buffer |
bufc | Output buffer tracker |
player | DBref of player |
caller | Not used |
cause | Not used |
fargs | Function arguments |
nfargs | Not used |
cargs | Not used |
ncargs | Not used |
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.
buff | Output buffer |
bufc | Output buffer tracker |
player | DBref of player |
caller | Not used |
cause | Not used |
fargs | Function arguments |
nfargs | Not used |
cargs | Not used |
ncargs | Not used |
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.
buff | Output buffer |
bufc | Output buffer tracker |
player | DBref of player |
caller | Not used |
cause | Not used |
fargs | Function arguments |
nfargs | Not used |
cargs | Not used |
ncargs | Not used |
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.
buff | Output buffer |
bufc | Output buffer tracker |
player | DBref of player |
caller | Not used |
cause | Not used |
fargs | Function arguments |
nfargs | Not used |
cargs | Not used |
ncargs | Not used |
Skip the ''
Skip the 1st hex character.
Skip the 2nd hex character.
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).
buff | Output buffer |
bufc | Output buffer tracker |
player | DBref of player |
caller | Not used |
cause | Not used |
fargs | Function arguments |
nfargs | Not used |
cargs | Not used |
ncargs | Not used |