From 4e3d655dff6f8a5aed626475fbf19c2a7119c20b Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 1 Aug 2019 00:11:12 +0100 Subject: Only send ACCOUNT and CHGHOST to clients that have sent NICK/USER. Closes #1657. --- src/modules/m_ircv3.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules/m_ircv3.cpp') diff --git a/src/modules/m_ircv3.cpp b/src/modules/m_ircv3.cpp index 14b1cf8a1..d65cd8695 100644 --- a/src/modules/m_ircv3.cpp +++ b/src/modules/m_ircv3.cpp @@ -139,6 +139,9 @@ class ModuleIRCv3 void OnAccountChange(User* user, const std::string& newaccount) CXX11_OVERRIDE { + if (!(user->registered & REG_NICKUSER)) + return; + // Logged in: 1 parameter which is the account name // Logged out: 1 parameter which is a "*" ClientProtocol::Message msg("ACCOUNT", user); -- cgit v1.3.1-10-gc9f91