From 0f8b11bc03d37e7ca495be5ea81cb85b84cf4a28 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 11 Feb 2006 18:58:01 +0000 Subject: Altered SVSNICK to echo back NICK message, grrrr, sodding ircservices-based services packages. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3164 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 475e75e84..ac766ea8e 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1415,9 +1415,15 @@ class TreeSocket : public InspSocket userrec* u = Srv->FindNick(params[0]); if (u) { - Srv->ChangeUserNick(u,params[1]); - u->age = atoi(params[2].c_str()); DoOneToAllButSender(prefix,"SVSNICK",params,prefix); + if (IS_LOCAL(u)) + { + std::deque par; + par.push_back(params[1]); + DoOneToMany(u->nick,"NICK",par); + Srv->ChangeUserNick(u,params[1]); + u->age = atoi(params[2].c_str()); + } } return true; } -- cgit v1.2.3