From e84c36a0bd255dfa1995c94b30f1c59d7dad7244 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 14 Dec 2018 16:43:49 -0500 Subject: Factor out ircQuit --- irc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'irc.c') diff --git a/irc.c b/irc.c index d562622..78b1ed5 100644 --- a/irc.c +++ b/irc.c @@ -117,6 +117,11 @@ void ircFmt(const char *format, ...) { free(buf); } +void ircQuit(const char *mesg) { + ircFmt("QUIT :%s\r\n", mesg); + self.quit = true; +} + void ircRead(void) { static char buf[4096]; static size_t len; -- cgit 1.4.1-2-gfad0