From 00b91976b07f4ad7d5f2b78642ddc8975b96c1d8 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 10 May 2015 01:49:26 +0200
Subject: degesch: fix QUIT message on C-c
---
degesch.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/degesch.c b/degesch.c
index fb94009..2477400 100644
--- a/degesch.c
+++ b/degesch.c
@@ -6074,11 +6074,11 @@ on_signal_pipe_readable (const struct pollfd *fd, struct app_context *ctx)
// TODO: multiserver
struct server *s = &ctx->server;
// TODO: a faster timer for quitting
+ // XXX: why do we do this? Just to reset the reconnect timer?
irc_reset_connection_timeouts (s);
- // FIXME: use a normal quit message
if (irc_is_connected (s))
- irc_send (s, "QUIT :Terminated by signal");
+ irc_initiate_disconnect (s, NULL);
initiate_quit (ctx);
}
--
cgit v1.2.3-70-g09d2