mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-25 16:53:37 +00:00
Reject messages not for me.
This commit is contained in:
parent
2250ad7027
commit
35995d03be
1 changed files with 3 additions and 4 deletions
|
@ -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 a new issue