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 /input.c | |
parent | Add uint typedef (diff) | |
download | catgirl-e84c36a0bd255dfa1995c94b30f1c59d7dad7244.tar.gz catgirl-e84c36a0bd255dfa1995c94b30f1c59d7dad7244.zip |
Factor out ircQuit
Diffstat (limited to '')
-rw-r--r-- | input.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/input.c b/input.c index 2cd0ca6..de27778 100644 --- a/input.c +++ b/input.c @@ -118,8 +118,11 @@ static void inputTopic(struct Tag tag, char *params) { static void inputQuit(struct Tag tag, char *params) { (void)tag; - ircFmt("QUIT :%s\r\n", params ? params : "Goodbye"); - self.quit = true; + if (params) { + ircQuit(params); + } else { + ircQuit("Goodbye"); + } } static void inputURL(struct Tag tag, char *params) { |