mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Log repeated Follow messages.
This commit is contained in:
parent
32eb3fb041
commit
df612873d6
1 changed files with 18 additions and 14 deletions
|
@ -823,6 +823,7 @@ int process_message(snac *snac, char *msg, char *req)
|
|||
}
|
||||
|
||||
if (strcmp(type, "Follow") == 0) {
|
||||
if (!follower_check(snac, actor)) {
|
||||
xs *f_msg = xs_dup(msg);
|
||||
xs *reply = msg_accept(snac, f_msg, actor);
|
||||
|
||||
|
@ -841,6 +842,9 @@ int process_message(snac *snac, char *msg, char *req)
|
|||
snac_log(snac, xs_fmt("new follower %s", actor));
|
||||
do_notify = 1;
|
||||
}
|
||||
else
|
||||
snac_debug(snac, 1, xs_fmt("repeated 'Follow' from %s", actor));
|
||||
}
|
||||
else
|
||||
if (strcmp(type, "Undo") == 0) {
|
||||
if (strcmp(utype, "Follow") == 0) {
|
||||
|
|
Loading…
Reference in a new issue