diff --git a/src/mod/server.mod/server.c b/src/mod/server.mod/server.c index b59e29301..4391b214d 100644 --- a/src/mod/server.mod/server.c +++ b/src/mod/server.mod/server.c @@ -2097,8 +2097,8 @@ static void server_die() char msg[MSGMAX]; cycle_time = 100; if (server_online) { - snprintf(msg, sizeof msg, "QUIT :%s\n", quit_msg[0] ? quit_msg : ""); - dprintf(-serv, msg); + snprintf(msg, sizeof msg, "QUIT :%s", quit_msg[0] ? quit_msg : ""); + dprintf(-serv, "%s\n", msg); if (raw_log) putlog(LOG_SRVOUT, "*", "[->] %s", msg); sleep(3); /* Give the server time to understand */