]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Revert the code changes to m_sasl made in commit 9d4b4344b4.
[user/henk/code/inspircd.git] / src / users.cpp
index 685ef9743c9024ce93d931c0d0c444496ef2b9bd..9e06485e5182c6a1ed511a152e7510438261790a 100644 (file)
@@ -1008,8 +1008,7 @@ bool User::SetClientIP(const char* sip, bool recheck_eline)
 
 void User::SetClientIP(const irc::sockets::sockaddrs& sa, bool recheck_eline)
 {
-       cachedip.clear();
-       cached_hostip.clear();
+       this->InvalidateCache();
        memcpy(&client_sa, &sa, sizeof(irc::sockets::sockaddrs));
 }
 
@@ -1398,6 +1397,8 @@ void User::DoHostCycle(const std::string &quitline)
 
        FOREACH_MOD(I_OnBuildNeighborList,OnBuildNeighborList(this, include_c, exceptions));
 
+       // Users shouldn't see themselves quitting when host cycling
+       exceptions.erase(this);
        for (std::map<User*,bool>::iterator i = exceptions.begin(); i != exceptions.end(); ++i)
        {
                LocalUser* u = IS_LOCAL(i->first);