summary refs log tree commit diff
path: root/contrib/palaver/notify.c
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/palaver/notify.c
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 '')
-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);
class='nohover-highlight'> This turned out a lot better than expected. Still a long way to go in terms of line-editing, but at least backspace works! 2018-08-03Track own usernameJune McEnroe So that we can colour our own messages correctly. 2018-08-03Use a wide pad for the topicJune McEnroe 2018-08-03Ignore NOTICEs not sent to the channelJune McEnroe 2018-08-03Handle KICK and NICKJune McEnroe 2018-08-03Continue on EINTR from pollJune McEnroe Resizing the terminal causes it. 2018-08-03Handle ACTIONsJune McEnroe 2018-08-03Use more octal char literalsJune McEnroe I might be coming around to octal. 2018-08-03Send a WHO in response to NAMES to get usernamesJune McEnroe Other than this slight hack, I think coloring by username rather than nick is a much better idea. 2018-08-03Colorize nicks and channelsJune McEnroe 2018-08-03Add support for mIRC colorsJune McEnroe 2018-08-03Handle bold, italic, underlineJune McEnroe 2018-08-03Add prift function for "prefix shift"June McEnroe Forgive me. 2018-08-03Link with -lcurseswJune McEnroe 2018-08-02Use libtls "compat" ciphersJune McEnroe irc.mozilla.org, using GnuTLS, doesn't support *any* of the "secure" ciphers! 2018-08-02Add UI and handle some kinds of server messagesJune McEnroe Seems like handling input is going to be the worst thing ever. 2018-08-02Add chroot.tar targetJune McEnroe