commit b9ba86872d2e419117a7e04acf1a27bde92a8350
parent 564c36b0047e7c23452c7090a41f7e60a9c8b77c
Author: Claudio Alessi <smoppy@gmail.com>
Date: Wed, 24 Aug 2022 22:07:21 +0200
Use default quit message if none is specified.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/circo.c b/circo.c
@@ -382,7 +382,9 @@ cmd_quit(char *cmd, char *msg) {
bprintf(sel, "/%s: not connected.\n", cmd);
return;
}
- quit(*msg ? msg : QUIT_MESSAGE);
+ if(!*msg)
+ msg = QUIT_MESSAGE;
+ quit(msg);
for(b = buffers; b; b = b->next)
bprintf(b, "Quit (%s)\n", msg);
}