X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fusers.cpp;h=ac87f1187992cc943d1dab44cc9de778473ffcdb;hb=39ddf2fb7a4d030fc29a7d421e09394cd70dc9bf;hp=4dbb73a1f55ef7e4e5492784d1165d283c832c53;hpb=fc4fc43ec232407b38d7ca182cb92c5cac4287aa;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/users.cpp b/src/users.cpp index 4dbb73a1f..ac87f1187 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -692,6 +692,7 @@ void User::UnOper() ServerInstance->Users->all_opers.remove(this); this->modes[UM_OPERATOR] = 0; + FOREACH_MOD(I_OnPostDeoper, OnPostDeoper(this)); } /* adds or updates an entry in the whowas list */ @@ -1008,8 +1009,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)); }