|
TinyMUSH 3.3
TinyMUSH Server
|
Command handling and validations. 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 <unistd.h>#include <dlfcn.h>
Functions | |
| dbref | insert_first (dbref head, dbref thing) |
| dbref | remove_first (dbref head, dbref thing) |
| dbref | reverse_list (dbref list) |
| int | member (dbref thing, dbref list) |
| bool | is_integer (char *str) |
| int | is_number (char *str) |
| int | could_doit (dbref player, dbref thing, int locknum) |
| int | canpayquota (dbref player, dbref who, int cost, int objtype) |
| int | pay_quota (dbref who, int cost, int objtype) |
| int | canpayfees (dbref player, dbref who, int pennies, int quota, int objtype) |
| int | type_quota (int objtype) |
| int | payfor (dbref who, dbref cost) |
| int | payfees (dbref who, int pennies, int quota, int objtype) |
| void | add_quota (dbref who, int payment, int type) |
| void | giveto (dbref who, int pennies) |
| int | ok_name (const char *name) |
| int | ok_player_name (const char *name) |
| int | ok_attr_name (const char *attrname) |
| int | ok_password (const char *password, dbref player) |
| void | handle_ears (dbref thing, int could_hear, int can_hear) |
| void | do_switch (dbref player, dbref cause, int key, char *expr, char *args[], int nargs, char *cargs[], int ncargs) |
| void | do_end (dbref player, dbref cause, int key, char *condstr, char *cmdstr, char *args[], int nargs) |
| void | do_hook (dbref player, __attribute__((unused)) dbref cause, int key, char *cmdname, char *target) |
| void | do_addcommand (dbref player, __attribute__((unused)) dbref cause, int key, char *name, char *command) |
| void | do_listcommands (dbref player, __attribute__((unused)) dbref cause, __attribute__((unused)) int key, char *name) |
| void | do_delcommand (dbref player, __attribute__((unused)) dbref cause, __attribute__((unused)) int key, char *name, char *command) |
| void | handle_prog (DESC *d, char *message) |
| int | ok_program (dbref player, dbref doer) |
| void | do_quitprog (dbref player, __attribute__((unused)) dbref cause, __attribute__((unused)) int key, char *name) |
| void | do_prog (dbref player, __attribute__((unused)) dbref cause, __attribute__((unused)) int key, char *name, char *command) |
| void | do_restart (dbref player, __attribute__((unused)) dbref cause, __attribute__((unused)) int key) |
| void | do_comment (__attribute__((unused)) dbref player, __attribute__((unused)) dbref cause, __attribute__((unused)) int key) |
| void | do_eval (__attribute__((unused)) dbref player, __attribute__((unused)) dbref cause, __attribute__((unused)) int key, __attribute__((unused)) char *str) |
| dbref | promote_dflt (dbref old, dbref new) |
| dbref | match_possessed (dbref player, dbref thing, char *target, dbref dflt, int check_enter) |
| void | parse_range (char **name, dbref *low_bound, dbref *high_bound) |
| int | parse_thing_slash (dbref player, char *thing, char **after, dbref *it) |
| int | get_obj_and_lock (dbref player, char *what, dbref *it, ATTR **attr, char *errmsg, char **bufc) |
| dbref | where_is (dbref what) |
| dbref | where_room (dbref what) |
| int | locatable (dbref player, dbref it, dbref cause) |
| int | nearby (dbref player, dbref thing) |
| char * | master_attr (dbref player, dbref thing, int what, char **sargs, int nsargs, int *f_ptr) |
| void | did_it (dbref player, dbref thing, int what, const char *def, int owhat, const char *odef, int awhat, int ctrl_flags, char *args[], int nargs, int msg_key) |
| void | do_verb (dbref player, dbref cause, int key, char *victim_str, char *args[], int nargs) |
| void | do_include (dbref player, dbref cause, __attribute__((unused)) int key, char *object, char *argv[], int nargs, char *cargs[], int ncargs) |
| void | do_redirect (dbref player, __attribute__((unused)) dbref cause, __attribute__((unused)) int key, char *from_name, char *to_name) |
| void | do_reference (dbref player, __attribute__((unused)) dbref cause, int key, char *ref_name, char *obj_name) |
Command handling and validations.
| void do_prog | ( | dbref | player, |
| __attribute__((unused)) dbref | cause, | ||
| __attribute__((unused)) int | key, | ||
| char * | name, | ||
| char * | command | ||
| ) |
Alloc_RegData
Copy_RegData