aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_ircv3_chghost.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2019-08-09 03:57:55 +0100
committerGravatar Sadie Powell2019-08-09 04:07:33 +0100
commit7c7de81b6d513330984bb328de7599bb1328f989 (patch)
tree1cd62b0d3419fcb93c488911f6ef8e5048f4bb99 /src/modules/m_ircv3_chghost.cpp
parentMerge branch 'insp3' into master. (diff)
parentFix waitpong referring to registration timeouts as ping timeouts. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_ircv3_chghost.cpp')
-rw-r--r--src/modules/m_ircv3_chghost.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_ircv3_chghost.cpp b/src/modules/m_ircv3_chghost.cpp
index dba1b5466..2a9badc5b 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);