about summary refs log tree commit diff
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
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
-rw-r--r--edit.c2
-rw-r--r--pounce.14
3 files changed, 5 insertions, 5 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");
diff --git a/edit.c b/edit.c
index 793e413..4003fac 100644
--- a/edit.c
+++ b/edit.c
@@ -404,7 +404,7 @@ static void handlePrivmsg(struct Message *msg) {
 		);
 
 	} else if (!strcmp(cmd, "restart")) {
-		format("QUIT :pounce reloading configuration\r\n");
+		format("QUIT :$pounce reloading configuration\r\n");
 	}
 }
 
diff --git a/pounce.1 b/pounce.1
index 3a5a81c..67d3ae9 100644
--- a/pounce.1
+++ b/pounce.1
@@ -1,4 +1,4 @@
-.Dd April  3, 2022
+.Dd October 30, 2022
 .Dt POUNCE 1
 .Os
 .
@@ -479,7 +479,7 @@ will simply be disconnected from
 If, however,
 the quit message
 starts with the keyword
-.Nm ,
+.Sy $pounce ,
 .Nm
 itself will quit.
 The remainder of the message
itle='2019-02-23 11:46:32 -0500'>2019-02-23Change example command to join #ascii.town on freenodeJune McEnroe 2019-02-23Call def_prog_mode after termNoFlowJune McEnroe So that the settings get restored after /url or /man. 2019-02-22Move IRC formatting reset to C-sJune McEnroe Opens C-n for window switching. 2019-02-22Disable terminal flow controlJune McEnroe This opens up C-o, C-q and C-s for key bindings without C-v. 2019-02-22Bind up and down arrows to scrollJune McEnroe Honestly it's kind of weird that IRC clients usually use these for input history. 2019-02-22Remove topic TODOJune McEnroe I played around with it and it doesn't look right unless there is only one channel listed in the status. 2019-02-22Add /znc commandJune McEnroe Only because ZNC tells you to use it and expects it to work. 2019-02-22Update status line after scrolling and term eventsJune McEnroe 2019-02-22Reorganize input.cJune McEnroe 2019-02-22Fix name of <raw> window in man pageJune McEnroe 2019-02-22Rename global tags with angle bracketsJune McEnroe 2019-02-22Show status window while connectingJune McEnroe 2019-02-22Reorganize UI code for the umpteenth timeJune McEnroe It's actually in a good state now, I think. 2019-02-21Replace "view" with "window"June McEnroe I think originally I didn't want to use the same word as curses WINDOW but it's really much clearer for the user if they're just called windows. UI code probably needs yet another rewrite though. Still feels messy. 2019-02-21Remove ROT13June McEnroe It's just not convenient when it can only do the whole line... 2019-02-21Clean up man pageJune McEnroe 2019-01-26Draw UI before connectingJune McEnroe Otherwise the "Traveling" message isn't visible while connecting. 2019-01-25Avoid unused variable warnings with getyxJune McEnroe 2019-01-25Add GNU/Linux build instructionsJune McEnroe