Manual:DIL Manual/check password()

From DikuMUD Wiki
< Manual:DIL Manual
Revision as of 13:08, 27 May 2020 by Nove (talk | contribs) (XML import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Function:  integer check_password( u : unitptr, s : string ) ;
  u
         the unit that you want to check the password of
  s
         the password you are using to check
  Return
         Returns an integer TRUE if pcname is the units password FALSE if not
This function checks the string against the units password and returns TRUE
if they match.
Example:

---~---~---~---~---~---~---~---~---
if (not check_password(pc,arg))
        {
        sendtext (arg+" is not "+pc.name"'s password.",self);
                quit;
        }


---~---~---~---~---~---~---~---~---


---~---~---~---~---~---~---~---~---