diff options
| author | 2014-07-26 16:10:23 +0200 | |
|---|---|---|
| committer | 2014-07-26 16:10:23 +0200 | |
| commit | 70b835e89eff6fcc47403d7fd7b4782f993ecf21 (patch) | |
| tree | 3858773d03bff340fc16ce77b344d8736eb1bb79 /src/modules/m_spanningtree/main.cpp | |
| parent | m_spanningtree Only accept uuids in SAVE (diff) | |
m_spanningtree Warn instead of sending SAVE if we change the nick of a non-local user outside of a command handler
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/main.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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); } } |
