MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

[server] $server_options




Hello,

We are working on a hack at this moment, which enables you to add a verb on
$server_options, for example: protect_add_verb.
When a builtin is called, the verb on $server_options (if found) MUST
return 1 to complete itself.
The advantage of it, is that you don't have to check on perms anymore, like
with a property, making builtins wiz only.

for example, protect_add_verb would look like this:

@verb $server_options:protect_add_verb this none this $owner "rx"
@program $server_options:protect_add_verb
set_task_perms(who=caller_perms());
if($quota_utils:verb_addition_permitted(who)
  return 1;
endif

Now if it returns 1, add_verb (the builtin) will complete itself, otherwise
E_PERM is returned.
If $server_options.protect_add_verb is valid and true, E_PERM is always
returned.

This is sure on my wishlist for 1.8.0 (*hint* ;-), but i'll finish it for
1.7.9 in a week or so, i'm not that good in C.

Kai

------  kais@moo.dds.nl  -----   MacHelp for stupid's    ------
-------  kais@xs4all.net  ---  http://www.dds.nl/~kais/ -------
-------- ledormant@dds.nl  -      LeD@ some moo's      --------




Follow-Ups:

Home | Subject Index | Thread Index