summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-25 18:44:29 +0200
committerdefault <nobody@localhost>2022-10-25 18:44:29 +0200
commit8f17e80cc1163db360c8cf0326c34164e7604cea (patch)
tree91b96a3fe8b1aeba01a7becb48871fb4a0d2a8b7
parent78b3a304479ac3063bf75d41ed25539ed474763d (diff)
Fixed another bug in actor_get().
-rw-r--r--data.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/data.c b/data.c
index 39f7efb..0549604 100644
--- a/data.c
+++ b/data.c
@@ -779,6 +779,13 @@ int actor_get(snac *snac, char *actor, d_char **data)
int status;
FILE *f;
+ if (strcmp(actor, snac->actor) == 0) {
+ if (data)
+ *data = msg_actor(snac);
+
+ return 200;
+ }
+
t = mtime(fn);
/* no mtime? there is nothing here */