diff options
author | June McEnroe <june@causal.agency> | 2019-12-08 20:43:56 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-12-08 20:43:56 -0500 |
commit | bb2db515dbeba6f2ece3aee3c8d5a81f385fd2e0 (patch) | |
tree | 885a675f734dcd2862821bed1bee316d9c2e9697 /client.c | |
parent | Reference openssl(1) by absolute path (diff) | |
download | pounce-bb2db515dbeba6f2ece3aee3c8d5a81f385fd2e0.tar.gz pounce-bb2db515dbeba6f2ece3aee3c8d5a81f385fd2e0.zip |
Don't send self-PMs to the server 1.0p2
Diffstat (limited to '')
-rw-r--r-- | client.c | 1 |
1 files changed, 1 insertions, 0 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]); } |