diff options
| author | 2022-11-23 21:43:00 +0100 | |
|---|---|---|
| committer | 2022-11-23 21:43:00 +0100 | |
| commit | cde8650df756d0e1b265c529aa0a32cae1d617af (patch) | |
| tree | 5950c9f81c142bbc106637aef4f18bcff9ace002 | |
| parent | Added listfile prototypes to snac.h. (diff) | |
| download | snac2-cde8650df756d0e1b265c529aa0a32cae1d617af.tar.gz snac2-cde8650df756d0e1b265c529aa0a32cae1d617af.tar.xz snac2-cde8650df756d0e1b265c529aa0a32cae1d617af.zip | |
Don't search explicitly for Person in actor_get().
Some actors are of type Service.
Diffstat (limited to '')
| -rw-r--r-- | data.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -274,7 +274,7 @@ int object_add(const char *id, d_char *obj) | |||
| 274 | else | 274 | else |
| 275 | status = 500; | 275 | status = 500; |
| 276 | 276 | ||
| 277 | srv_debug(2, xs_fmt("object_add %s %d", id, status)); | 277 | srv_debug(2, xs_fmt("object_add %s %s %d", id, fn, status)); |
| 278 | 278 | ||
| 279 | return status; | 279 | return status; |
| 280 | } | 280 | } |
| @@ -1094,7 +1094,7 @@ int actor_get(snac *snac, const char *actor, d_char **data) | |||
| 1094 | } | 1094 | } |
| 1095 | 1095 | ||
| 1096 | /* read the object */ | 1096 | /* read the object */ |
| 1097 | if (!valid_status(status = object_get(actor, &d, "Person"))) | 1097 | if (!valid_status(status = object_get(actor, &d, NULL))) |
| 1098 | return status; | 1098 | return status; |
| 1099 | 1099 | ||
| 1100 | if (data) | 1100 | if (data) |