Skip to content

Commit 24c56d0

Browse files
committed
change how receiver-focus works
1 parent cc3b563 commit 24c56d0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

net_io.c

+3-6
Original file line numberDiff line numberDiff line change
@@ -5015,12 +5015,6 @@ static int readBeast(struct client *c, int64_t now, struct messageBuffer *mb) {
50155015
if (eom > c->eod) // Incomplete message in buffer, retry later
50165016
break;
50175017

5018-
if (Modes.receiver_focus && c->receiverId != Modes.receiver_focus && noEscape[0] != 'P') {
5019-
// advance to next message
5020-
c->som = eom;
5021-
continue;
5022-
}
5023-
50245018
if (!c->service) {
50255019
fprintf(stderr, "c->service null hahGh1Sh\n");
50265020
return -1;
@@ -5970,6 +5964,9 @@ static inline int skipMessage(struct modesMessage *mm) {
59705964
if (Modes.process_only != BADDR && mm->addr != Modes.process_only) {
59715965
return 1;
59725966
}
5967+
if (Modes.receiver_focus && mm->receiverId != Modes.receiver_focus) {
5968+
return 1;
5969+
}
59735970
return 0;
59745971
}
59755972

0 commit comments

Comments
 (0)