From a9d4469f84bf935bc3483f82057133f82383f0ea Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 13 Aug 2020 12:26:33 -0400 Subject: contrib/palaver: Don't set channel for PMs --- contrib/palaver/notify.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'contrib/palaver/notify.c') diff --git a/contrib/palaver/notify.c b/contrib/palaver/notify.c index 7ca650d..2d2d0bb 100644 --- a/contrib/palaver/notify.c +++ b/contrib/palaver/notify.c @@ -537,8 +537,10 @@ static void jsonBody( fprintf(file, "{\"badge\":%d", badge); fprintf(file, ",\"sender\":"); jsonString(file, msg->nick); - fprintf(file, ",\"channel\":"); - jsonString(file, msg->params[0]); + if (strcmp(msg->params[0], nick)) { + fprintf(file, ",\"channel\":"); + jsonString(file, msg->params[0]); + } if (network) { fprintf(file, ",\"network\":"); jsonString(file, network); -- cgit 1.4.1