diff options
author | June McEnroe <june@causal.agency> | 2018-12-14 16:43:49 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-12-14 16:43:49 -0500 |
commit | e84c36a0bd255dfa1995c94b30f1c59d7dad7244 (patch) | |
tree | c8cc7a9a3d5383bb0b6429eb2c9377c26f4f0477 /irc.c | |
parent | Add uint typedef (diff) | |
download | catgirl-e84c36a0bd255dfa1995c94b30f1c59d7dad7244.tar.gz catgirl-e84c36a0bd255dfa1995c94b30f1c59d7dad7244.zip |
Factor out ircQuit
Diffstat (limited to 'irc.c')
-rw-r--r-- | irc.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |