From d318c732004192185d39060c3f7be037cb87d035 Mon Sep 17 00:00:00 2001 From: Michael Ortmann Date: Sat, 14 Oct 2023 23:18:01 +0200 Subject: [PATCH] Also log quit message that is send to server withoiut using eggdrop queue --- src/mod/server.mod/server.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mod/server.mod/server.c b/src/mod/server.mod/server.c index aea437f66..b59e29301 100644 --- a/src/mod/server.mod/server.c +++ b/src/mod/server.mod/server.c @@ -2094,9 +2094,13 @@ static void server_postrehash() static void server_die() { + char msg[MSGMAX]; cycle_time = 100; if (server_online) { - dprintf(-serv, "QUIT :%s\n", quit_msg[0] ? quit_msg : ""); + snprintf(msg, sizeof msg, "QUIT :%s\n", quit_msg[0] ? quit_msg : ""); + dprintf(-serv, msg); + if (raw_log) + putlog(LOG_SRVOUT, "*", "[->] %s", msg); sleep(3); /* Give the server time to understand */ } nuke_server(NULL);