diff options
| author | Alexander Barton <alex@barton.de> | 2023-07-18 11:45:01 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2023-07-18 11:45:01 +0200 |
| commit | 63ad3b9acd1e461a669d31de50ff5c3eabaefc85 (patch) | |
| tree | 11a00e02476b0cea0fc9991941a0a0fdfec5feb5 /src | |
| parent | 0035e0d77867c961b4db6f121f2b43a8d45688bd (diff) | |
| download | ngircd-63ad3b9acd1e461a669d31de50ff5c3eabaefc85.tar.gz ngircd-63ad3b9acd1e461a669d31de50ff5c3eabaefc85.zip | |
Update the final "closing connection" message
Add some more information (nick name, user name, host name) and bring it in line with some other implementations (at least ircd2.11 and Hybrid).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conn.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 92e4bff2..e8ef68f3 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -1055,8 +1055,10 @@ Conn_Close(CONN_ID Idx, const char *LogMsg, const char *FwdMsg, bool InformClien } #endif /* Send ERROR to client (see RFC 2812, section 3.1.7) */ - if (FwdMsg) - Conn_WriteStr(Idx, "ERROR :%s", FwdMsg); + if (c) + Conn_WriteStr(Idx, "ERROR :Closing connection: %s[%s@%s] (%s)", + Client_ID(c), Client_User(c), Client_Hostname(c), + FwdMsg ? FwdMsg : "\"\""); else Conn_WriteStr(Idx, "ERROR :Closing connection"); } |