diff options
| author | 2019-08-01 00:11:12 +0100 | |
|---|---|---|
| committer | 2019-08-01 00:11:12 +0100 | |
| commit | 4e3d655dff6f8a5aed626475fbf19c2a7119c20b (patch) | |
| tree | 9e0372da3f33f800d5ed1f77ad1599520a152477 /src/modules/m_ircv3_chghost.cpp | |
| parent | Fix sasl hangs with clients that blindly request the capability. (diff) | |
Only send ACCOUNT and CHGHOST to clients that have sent NICK/USER.
Closes #1657.
Diffstat (limited to 'src/modules/m_ircv3_chghost.cpp')
| -rw-r--r-- | src/modules/m_ircv3_chghost.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_ircv3_chghost.cpp b/src/modules/m_ircv3_chghost.cpp index d78689178..289f05753 100644 --- a/src/modules/m_ircv3_chghost.cpp +++ b/src/modules/m_ircv3_chghost.cpp @@ -28,6 +28,9 @@ class ModuleIRCv3ChgHost : public Module void DoChgHost(User* user, const std::string& ident, const std::string& host) { + if (!(user->registered & REG_NICKUSER)) + return; + ClientProtocol::Message msg("CHGHOST", user); msg.PushParamRef(ident); msg.PushParamRef(host); |
