summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-10 20:06:25 -0500
committerJune McEnroe <june@causal.agency>2020-02-10 20:06:25 -0500
commitbabd3b0a6c4715bba573ffdf7bd07eac62b8cd0f (patch)
tree7c95f563616738abcfbca48f2727e8d99096e9cd /chat.c
parentFactor out XDG base directory code (diff)
downloadcatgirl-babd3b0a6c4715bba573ffdf7bd07eac62b8cd0f.tar.gz
catgirl-babd3b0a6c4715bba573ffdf7bd07eac62b8cd0f.zip
Synthesize a QUIT message to handle on exit
So that the end of a saved buffer contains the self quit.
Diffstat (limited to '')
-rw-r--r--chat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/chat.c b/chat.c
index 1ae7090..f854a33 100644
--- a/chat.c
+++ b/chat.c
@@ -247,5 +247,13 @@ int main(int argc, char *argv[]) {
 	} else {
 		ircFormat("QUIT\r\n");
 	}
+	struct Message msg = {
+		.nick = self.nick,
+		.user = self.user,
+		.cmd = "QUIT",
+		.params[0] = self.quit,
+	};
+	handle(msg);
+
 	uiHide();
 }
/tr> 2019-12-18Customize cgit CSSJune McEnroe 2019-12-18Use :target rather than :focus pseudo-classJune McEnroe 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe 2019-12-16Post "cgit setup"June McEnroe=1'>Add FAUVE, CocoRosieJune McEnroe 2018-04-03Add House of LeavesJune McEnroe 2018-04-03Add ChromaticsJune McEnroe 2018-04-03Add those new Arcade Fire singlesJune McEnroe 2018-04-03Add SermonJune McEnroe 2018-04-03Add Pools of LightJune McEnroe 2018-04-03Add SteroidsJune McEnroe 2018-04-03Add A Common TruthJune McEnroe 2018-04-03Add new Colin Stetson albumJune McEnroe 2018-04-03Add ForgetJune McEnroe 2018-04-03Add ArcaJune McEnroe 2018-04-03Add new DMST and Joni VoidJune McEnroe 2018-04-03Add The Body LoversJune McEnroe 2018-04-03Add some albums from recentlyJune McEnroe 2018-04-03Add Saltland Light of MercyJune McEnroe 2018-04-03Add Jessica Moss GlaciersJune McEnroe 2018-04-03Add BNNY RBBTJune McEnroe 2018-04-03Add DepthsJune McEnroe 2018-04-03Add new Saltland previewJune McEnroe 2018-04-03Add BenjiJune McEnroe 2018-04-03Add Mouth MoodsJune McEnroe 2018-04-03Add Those Who Walk AwayJune McEnroe 2018-04-03Add Some TunesJune McEnroe 2018-04-03Add Pas pire popJune McEnroe 2018-04-03Add I Give You PowerJune McEnroe 2018-04-03Add Jenny GoGoJune McEnroe 2018-04-03Add KKB Fish BowlJune McEnroe 2018-04-03Add new Avec le soleil album previewJune McEnroe 2018-04-03Add Julien Baker as recent new musicJune McEnroe 2018-04-03Add recent new musicJune McEnroe