DOMAIN(1) DOMAIN(1) NNAAMMEE _d_o_m_a_i_n_(_) - returns the domain to which an object belongs SSYYNNOOPPSSIISS string domain(object|string val) DDEESSCCRRIIPPTTIIOONN Given an object as an argument, _d_o_m_a_i_n_(_) will return the domain to which the object belongs based on its file name. If a string is passed, the string is assumed to be the file name of an object and the function will return the domain associated with that file name. Domains are determined based on the following criteria: +o the return from query_domain() in the object if that value is a valid domain and the first argument is an object or a loadable file +o the domain from which the object comes if its file name is from the mudlib domains directory +o if the object is from a creator home directory, it checks the sub-directory of that home directory from which it came and returns it if it is a valid domain =back EEXXAAMMPPLLEESS +o _d_o_m_a_i_n(ob) will return "NorthForest" if the file name is "/domains/NorthForest/sword" and ob->_q_u_e_r_y___d_o_m_a_i_n_(_) returns 0 +o _d_o_m_a_i_n("/realms/descartes/Orlith/entrance") returns "Orlith" LLOOCCAATTIIOONN /secure/SimulEfun/domains.c SSEEEE AALLSSOO _d_o_m_a_i_n___m_a_s_t_e_r_(_), _d_o_m_a_i_n___e_x_i_s_t_s_(_) AAuutthhoorr Descartes of Borg 1