LPC Library Functions: enable_wizard

NAME

enable_wizard() - give wizard privileges to an object

SYNOPSIS

void enable_wizard( void );

An interactive object 'ob' which calls enable_wizard() will be considered a wizard by the driver; this has the following effects:

  • wizardp(ob) will return true.
  • 'ob' will have the ability to use restricted modes of ed when the RESTRICTED_ED flag is defined in the driver.
  • 'ob' will receive descriptive runtime error messages.
  • 'ob' will be able to use the trace() and traceprefix() efuns.

Note that this function is only available when the driver flag NO_WIZARDS is not defined. If you choose not to have the driver keep track of wizards, you need to take the following steps in your mudlib code:

  • ed() must be explicitly restricted when necessary.
  • a mudlib error handler should be implemented to give appropriate messages if you don't want all users to get descriptive error traces.
  • trace() and traceprefix() should be restricted via simul_efuns, if necessary.

SEE ALSO

disable_wizard(), wizardp()

Page design by Frank Jacquette & Tim Hollebeek
Copyright (C) 1998 Tim Hollebeek & Frank Jacquette
Back to MudOS