mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Reject messages not for me.
This commit is contained in:
parent
2250ad7027
commit
35995d03be
@ -942,11 +942,10 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
|
||||
utype = "(null)";
|
||||
|
||||
/* reject messages that are not for this user */
|
||||
int d = is_msg_for_me(snac, msg);
|
||||
snac_debug(snac, 0, xs_fmt("---> %s %d", xs_dict_get(msg, "id"), d));
|
||||
|
||||
if (!d) {
|
||||
if (!is_msg_for_me(snac, msg)) {
|
||||
snac_debug(snac, 0, xs_fmt("message from %s not for us", actor));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* bring the actor */
|
||||
|
Loading…
Reference in New Issue
Block a user