summaryrefslogtreecommitdiff
path: root/store.c
diff options
context:
space:
mode:
Diffstat (limited to 'store.c')
-rw-r--r--store.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/store.c b/store.c
index 4bc2d8e..17acc74 100644
--- a/store.c
+++ b/store.c
@@ -86,8 +86,10 @@ static bool filter(struct TdMessage *msg) {
struct TdMessageForwardOriginChannel *chan =
(struct TdMessageForwardOriginChannel *) origin;
if (chan->chat_id_ != -1001304761546 &&
- chan->chat_id_ != -1001565681839)
- return false;
+ chan->chat_id_ != -1001565681839) {
+ if (!chan->author_signature_ ||
+ strcmp(chan->author_signature_, "ksyx") != 0) return false;
+ }
break;
}
case CODE_MessageForwardOriginHiddenUser: {