1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

use some more psyc_object()

This commit is contained in:
psyc://psyced.org/~lynX 2011-07-24 18:30:36 +02:00
parent 13846359c0
commit 15dd8c0ada
4 changed files with 16 additions and 3 deletions

View file

@ -2675,9 +2675,14 @@ sAide(whom) {
int ret;
mapping aides = v("aides") || ([]);
// change local uniform to nick
#if 0
// change local uniform to nick ... isn't really correct like this
array(mixed) u = parse_uniform(whom);
if (u && is_localhost(lower_case(u[UHost]))) whom = u[UResource];
#else
object o = psyc_object(whom);
if (o) whom = o->qName();
#endif
t = lower_case(whom);
if (aides[t]) {