diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-11 17:19:09 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-11 17:19:09 +0000 |
commit | 31fdbf70b7bd549cbc5ca92c799de68068d0898d (patch) | |
tree | 3e3abae0f7f9cd35619a2ca2f566dc52041572b4 /src | |
parent | f2ff31a98d422e806e243ab7882248fd82f968a6 (diff) |
Added PUSH command, do not use yet until tested and documented
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3153 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index e859ff844..0bea7f896 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1664,6 +1664,24 @@ class TreeSocket : public InspSocket } return true; } + + bool Push(std::string prefix, std::deque<std::string> ¶ms) + { + if (params.size() < 2) + return true; + userrec* u = Srv->FindNick(params[0]); + if (IS_LOCAL(u)) + { + // push the raw to the user + ::Write(u->fd,"%s",params[1].c_str()); + } + else + { + // continue the raw onwards + DoOneToOne(prefix,"PUSH",params,u->server); + } + return true; + } bool LocalPing(std::string prefix, std::deque<std::string> ¶ms) { @@ -2114,6 +2132,10 @@ class TreeSocket : public InspSocket { return this->Whois(prefix,params); } + else if (command == "PUSH") + { + return this->Push(prefix,params); + } else if (command == "SVSJOIN") { if (prefix == "") |