From: Attila Molnar Date: Sat, 26 Jul 2014 14:10:23 +0000 (+0200) Subject: m_spanningtree Warn instead of sending SAVE if we change the nick of a non-local... X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=70b835e89eff6fcc47403d7fd7b4782f993ecf21;p=user%2Fhenk%2Fcode%2Finspircd.git m_spanningtree Warn instead of sending SAVE if we change the nick of a non-local user outside of a command handler --- diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index ee4c4bdd8..ce13e5d25 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -604,12 +604,9 @@ void ModuleSpanningTree::OnUserPostNick(User* user, const std::string &oldnick) params.push_back(ConvToStr(user->age)); params.Broadcast(); } - else if (!loopCall && user->nick == user->uuid) + else if (!loopCall) { - CmdBuilder params("SAVE"); - params.push_back(user->uuid); - params.push_back(ConvToStr(user->age)); - params.Broadcast(); + ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "WARNING: Changed nick of remote user %s from %s to %s TS %lu by ourselves!", user->uuid.c_str(), oldnick.c_str(), user->nick.c_str(), (unsigned long) user->age); } }