summary refs log tree commit diff
path: root/contrib
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-13 12:26:33 -0400
committerJune McEnroe <june@causal.agency>2020-08-13 12:26:33 -0400
commita9d4469f84bf935bc3483f82057133f82383f0ea (patch)
tree2ed9a6bda232d08cf40f8154226ebbfb07be2695 /contrib
parentFix unintended interception of NICK after registration (diff)
downloadpounce-a9d4469f84bf935bc3483f82057133f82383f0ea.tar.gz
pounce-a9d4469f84bf935bc3483f82057133f82383f0ea.zip
contrib/palaver: Don't set channel for PMs
Diffstat (limited to 'contrib')
-rw-r--r--contrib/palaver/notify.c6
1 files changed, 4 insertions, 2 deletions
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);
='2020-02-12 02:23:15 -0500'>2020-02-12Add imbox and notemap to pageJune McEnroe 2020-02-12Collapse simple linksJune McEnroe 2020-02-12Move catgirl up the pageJune McEnroe 2020-02-12Update catgirl pty grabJune McEnroe 2020-02-12Link to cgit /about pages where appropriateJune McEnroe 2020-02-11Separate LINKS from BINS for html to workJune McEnroe 2020-02-11Add margin to Bl-bullet itemsJune McEnroe 2020-02-10Match URLs inside parens or with paired parens insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe 2020-01-28Change scout sensitivity to 1.4June McEnroe 2020-01-28Import shows.txtJune McEnroe