summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-11-23 21:43:00 +0100
committerdefault <nobody@localhost>2022-11-23 21:43:00 +0100
commitcde8650df756d0e1b265c529aa0a32cae1d617af (patch)
tree5950c9f81c142bbc106637aef4f18bcff9ace002
parent180c3405a048ecb16096ccc5c3188d2b9c7fad46 (diff)
Don't search explicitly for Person in actor_get().
Some actors are of type Service.
-rw-r--r--data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/data.c b/data.c
index 0ffc171..e63dff1 100644
--- a/data.c
+++ b/data.c
@@ -274,7 +274,7 @@ int object_add(const char *id, d_char *obj)
else
status = 500;
- srv_debug(2, xs_fmt("object_add %s %d", id, status));
+ srv_debug(2, xs_fmt("object_add %s %s %d", id, fn, status));
return status;
}
@@ -1094,7 +1094,7 @@ int actor_get(snac *snac, const char *actor, d_char **data)
}
/* read the object */
- if (!valid_status(status = object_get(actor, &d, "Person")))
+ if (!valid_status(status = object_get(actor, &d, NULL)))
return status;
if (data)