diff options
author | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-01 21:41:07 +0000 |
---|---|---|
committer | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-01 21:41:07 +0000 |
commit | 1c600e3912db8d2ab0fd72fb3869083fcc6c9e46 (patch) | |
tree | 7fa74cf866c4d55e21112a1d1e71791896dd2afe | |
parent | 89a8a819facc3e6aed9c76cf21a6bb8096c1562f (diff) |
Added the send_push event to m_spanningtree (send raw text to a remote user)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5624 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_spanningtree.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 8b115815d..7d034c17c 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -5028,6 +5028,19 @@ class ModuleSpanningTree : public Module params->insert(params->begin() + 1,ConvToStr(ourTS)); Utils->DoOneToMany(ServerInstance->Config->ServerName,"FMODE",*params); } + else if (event->GetEventID() == "send_push") + { + if (params->size() < 2) + return; + + userrec *a = ServerInstance->FindNick((*params)[0]); + + if (!a) + return; + + (*params)[1] = ":" + (*params)[1]; + Utils->DoOneToOne(ServerInstance->Config->ServerName, "PUSH", *params, a->server); + } } virtual ~ModuleSpanningTree() |