]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_spanningtree Warn instead of sending SAVE if we change the nick of a non-local...
authorAttila Molnar <attilamolnar@hush.com>
Sat, 26 Jul 2014 14:10:23 +0000 (16:10 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Sat, 26 Jul 2014 14:10:23 +0000 (16:10 +0200)
src/modules/m_spanningtree/main.cpp

index ee4c4bdd8b656e3d90163ef5ca5f37b6058f90de..ce13e5d2523a33cb9d7b0dfb57a983250514921e 100644 (file)
@@ -604,12 +604,9 @@ void ModuleSpanningTree::OnUserPostNick(User* user, const std::string &oldnick)
                params.push_back(ConvToStr(user->age));
                params.Broadcast();
        }
                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);
        }
 }
 
        }
 }