re-add the ip to the user message

This commit is contained in:
Christian Heusel
2022-11-17 18:11:36 +01:00
parent 5fb8891da4
commit 1e90b8a185
2 changed files with 12 additions and 11 deletions

View File

@@ -91,9 +91,9 @@ class CClientNotifyMod : public CModule {
CString sRemoteIP = GetClient()->GetRemoteIP();
CString sRemoteClientID = GetClient()->GetIdentifier();
CString& sClientNameMessage = sRemoteIP;
if (m_bNotifyOnNewClientID and sRemoteClientID != "") {
sClientNameMessage = sRemoteClientID;
CString sClientNameMessage{sRemoteIP};
if (m_bNotifyOnNewClientID && sRemoteClientID != "") {
sClientNameMessage += " / " + sRemoteClientID;
}
auto sendLoginNotification = [&]() {