summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-08 20:43:56 -0500
committerJune McEnroe <june@causal.agency>2019-12-08 20:43:56 -0500
commitbb2db515dbeba6f2ece3aee3c8d5a81f385fd2e0 (patch)
tree885a675f734dcd2862821bed1bee316d9c2e9697
parentReference openssl(1) by absolute path (diff)
downloadpounce-bb2db515dbeba6f2ece3aee3c8d5a81f385fd2e0.tar.gz
pounce-bb2db515dbeba6f2ece3aee3c8d5a81f385fd2e0.zip
Don't send self-PMs to the server 1.0p2
Diffstat (limited to '')
-rw-r--r--client.c1
-rw-r--r--pounce.18
2 files changed, 8 insertions, 1 deletions
diff --git a/client.c b/client.c
index 9be5a62..45ab179 100644
--- a/client.c
+++ b/client.c
@@ -209,6 +209,7 @@ static void handlePrivmsg(struct Client *client, struct Message *msg) {
 	size_t diff = ringDiff(client->consumer);
 	ringProduce(line);
 	if (!diff) ringConsume(NULL, client->consumer);
+	if (!strcmp(msg->params[0], stateNick())) return;
 
 	serverFormat("%s %s :%s\r\n", msg->cmd, msg->params[0], msg->params[1]);
 }
diff --git a/pounce.1 b/pounce.1
index 6cb4180..eceb714 100644
--- a/pounce.1
+++ b/pounce.1
@@ -1,4 +1,4 @@
-.Dd November 18, 2019
+.Dd December 8, 2019
 .Dt POUNCE 1
 .Os
 .
@@ -302,6 +302,12 @@ is supported:
 .Sy multi-prefix ,
 .Sy userhost-in-names .
 .
+.Pp
+Private messages and notices
+sent to the user's own nickname
+are relayed only to other clients,
+not to the server.
+.
 .Ss Configuring SASL EXTERNAL
 .Bl -enum
 .It
3' class='logmsg'> 2019-09-16Add The Just CityJune McEnroe 2019-09-12Only GET the final redirect locationJune McEnroe 2019-09-12Consume entire bodyJune McEnroe Aborting the request and leaving data around may be causing intermittent errors. Just discard the rest of the data. 2019-09-10Add title -v flagJune McEnroe 2019-09-10Use curl error bufferJune McEnroe 2019-09-10Set Accept-Encoding in titleJune McEnroe Because apparently it's fine for servers to respond with Content-Encoding you didn't ask for, and curl won't decode it if you didn't ask for it. 2019-09-08Set title User-AgentJune McEnroe Some things don't like you if you don't send one. 2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe Allows restarting consumers safely. 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe Oops, didn't see this. 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe