diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-05-10 01:49:26 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-05-10 01:49:26 +0200 |
commit | 00b91976b07f4ad7d5f2b78642ddc8975b96c1d8 (patch) | |
tree | 1c526544e3d0a451e73a7549ee53ae8e67459015 /degesch.c | |
parent | 1bbfcbe993e86ad3fbe9fa099afa2a38cdf270d9 (diff) | |
download | xK-00b91976b07f4ad7d5f2b78642ddc8975b96c1d8.tar.gz xK-00b91976b07f4ad7d5f2b78642ddc8975b96c1d8.tar.xz xK-00b91976b07f4ad7d5f2b78642ddc8975b96c1d8.zip |
degesch: fix QUIT message on C-c
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |