summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-10-21 12:21:11 +0100
committerPeter Powell <petpow@saberuk.com>2019-10-21 12:22:46 +0100
commitede5d4f612fed4462893aa8c2f67c44e9ec07b25 (patch)
treecb2fa2314f83d5ce61d1cf2d71bde9c2b156b815
parent3a04cd83f357f7efba9ee048b46caf30bf7e29a5 (diff)
Fire the OnSetUserIP event after the connect class change.
-rw-r--r--src/users.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 69483ac92..69def5154 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -758,17 +758,16 @@ void LocalUser::SetClientIP(const irc::sockets::sockaddrs& sa)
return;
ServerInstance->Users->RemoveCloneCounts(this);
-
User::SetClientIP(sa);
-
- FOREACH_MOD(OnSetUserIP, (this));
-
ServerInstance->Users->AddClone(this);
// Recheck the connect class.
this->MyClass = NULL;
this->SetClass();
this->CheckClass();
+
+ if (!quitting)
+ FOREACH_MOD(OnSetUserIP, (this));
}
void LocalUser::Write(const ClientProtocol::SerializedMessage& text)