Skip to content

Commit

Permalink
Also log quit message that is send to server withoiut using eggdrop q…
Browse files Browse the repository at this point in the history
…ueue
  • Loading branch information
Michael Ortmann committed Oct 14, 2023
1 parent 322bddb commit d318c73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mod/server.mod/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d318c73

Please sign in to comment.