Branch: Tag:

2001-01-29

2001-01-29 22:40:23 by Per Hedbor <ph@opera.com>

API fixes

Rev: server/base_server/prototypes.pike:1.12

1:   #include <stat.h>   #include <config.h>   #include <module_constants.h> - constant cvs_version="$Id: prototypes.pike,v 1.11 2001/01/29 09:04:30 per Exp $"; + constant cvs_version="$Id: prototypes.pike,v 1.12 2001/01/29 22:40:23 per Exp $";      class Variable   {
675:   {    string name();    //! The group name -  array(User) members() +  array(string) members()    //! All users that are members of this group. The default    //! implementation loops over all users handled by the user database    //! and looks for users with the same gid as this group.
685:    int id = gid();    foreach( database->list_users(), string u )    if( (uid = database->find_user( u )) && (uid->gid() == id) ) -  res += ({ uid }); +  res += ({ u });    return res;    }   
724:    string crypted_password() { return "x"; }    //! Used by compat_userinfo(). The default implementation returns "x"    -  array(Group) groups() +  array(string) groups()    //! Return all groups this user is a member in. The default    //! implementation returns ({})    {