diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-11 18:58:01 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-11 18:58:01 +0000 |
commit | 0f8b11bc03d37e7ca495be5ea81cb85b84cf4a28 (patch) | |
tree | e00f104adc0c30c6aef65a8fe2822394f49132ef /src | |
parent | afc69666cf981b0d7f5bbcc536f4fb40d82a9f4e (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 10 |
1 files 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<std::string> 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; } |