summaryrefslogtreecommitdiff
path: root/src/modules/m_ircv3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_ircv3.cpp')
-rw-r--r--src/modules/m_ircv3.cpp3
1 files changed, 3 insertions, 0 deletions
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);