summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-01 21:41:07 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-01 21:41:07 +0000
commit1c600e3912db8d2ab0fd72fb3869083fcc6c9e46 (patch)
tree7fa74cf866c4d55e21112a1d1e71791896dd2afe /src
parent89a8a819facc3e6aed9c76cf21a6bb8096c1562f (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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp13
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()