summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-10-30 16:37:29 -0400
committerJune McEnroe <june@causal.agency>2022-10-30 16:37:29 -0400
commit449d2b2c4de9e3579fdf555761862b909e52e9d5 (patch)
tree77d51d72bdd3abe1364f90da55cd02534d034d56 /client.c
parentOpenBSD: Fix broken unveil in calico on 7.2 (diff)
downloadpounce-449d2b2c4de9e3579fdf555761862b909e52e9d5.tar.gz
pounce-449d2b2c4de9e3579fdf555761862b909e52e9d5.zip
Use $pounce as clientQuit keyword
Diffstat (limited to '')
-rw-r--r--client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.c b/client.c
index 19296ed..1ae31ed 100644
--- a/client.c
+++ b/client.c
@@ -281,8 +281,8 @@ static void handleAuthenticate(struct Client *client, struct Message *msg) {
 
 static void handleQuit(struct Client *client, struct Message *msg) {
 	const char *mesg = msg->params[0];
-	if (mesg && !strncmp(mesg, "pounce", 6) && (!mesg[6] || mesg[6] == ' ')) {
-		mesg += 6;
+	if (mesg && !strncmp(mesg, "$pounce", 7) && (!mesg[7] || mesg[7] == ' ')) {
+		mesg += 7;
 		mesg += strspn(mesg, " ");
 		clientQuit = strdup(mesg);
 		if (!clientQuit) err(EX_OSERR, "strdup");