# Database editors

Rich Connamacher (phantom@baymoo.sfsu.edu)
Thu, 14 Sep 1995 12:03:41 PDT

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    > I still hold that if a db editor did exist, then it should only be able to do
    > two things:
    >
    > 1.  set an object's wizard bit
    > 2.  program #0:server_started
    >
    > Let's take an example:
    > #2's (or #3, if miminal db -- I'll just use $archwizard) player flag gets
    >  take away.
    > $archwizard's programmer flag gets taken away
    > $archwizard can't remember 'is password.
    >
    > Fixable with:
    >
    > find #0:server_started in the db file (first line should be a comment
    >  containing "SERVER STARTED"; to make it easier to find)
    > add these lines:
    >
    > #0:5
    > "SERVER STARTED";
    > set_player_flag(#2, 1);
    > #2.programmer = 1;
    > #2.password = crypt("password");
    > or
    > #2.password = 0;
    > ... rest of code

    There's a problem with this.  #2 now has no wizard bit.  #2 ownes
    #0:server_started.  #0:server_started does not have wizard permissions now.

    Oh, and you're forgetting one more line in there,
    $player_db:insert(#2.name, #2);  (did I get the args in the right order?)

    So the database editor must have the ability to set a wizard flag.

    > You shouldn't be doing serious development work on a MOO that only checkpoints
    >  once a day, unless you *like* to play with fire.

    I don't.  But some people do.  Or, for the other alternative, this
    happens right before the next hourly checkpoint and the old checkpoint is
    written over.  (This did happen to me once, during the first week of
    PhantomMOO)

    >   ______                              __
    >     /   /  Andy Bakun     _/_      / /  `  /)  /)       _/_
    >  --/   /_  , , , __.  __  /  _  __/ /--   //  //  __,_  /  _
    > (_/   / /_(_(_/_(_/|_/ (_<__</_(_/ (___, //__//__(_) (_<__/_)_
    >   How much head could a bonehead bone   />  />
    >     if a bonehead could bone head?     //  //
    >   http://tecfa.unige.ch:4243/~tef/    </  </

    Did I ever say that I like your signature? :-)

    Phantom