summary refs log tree commit diff
diff options
context:
space:
mode:
-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
=1'>Add flags to request TOPIC and NAMES on client connectJune McEnroe 2019-10-26OopsJune McEnroe 2019-10-26Disconnect client on unknown commandJune McEnroe 2019-10-26Allow reading sensitive information from filesJune McEnroe 2019-10-26Add rc scriptJune McEnroe 2019-10-25Add install and uninstall targetsJune McEnroe 2019-10-25Expand documentationJune McEnroe 2019-10-25Add AGPLv3 notice on client registrationJune McEnroe 2019-10-25Rename project pounceJune McEnroe