summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 19:59:40 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 19:59:40 +0000
commit888b7b79d25435b34e862ffd2c1fd03aaa8797ef (patch)
tree03bee2f1a778cd8b489f291ff9dcfa06d703566e /src
parentb4cbd36f1c8773a52d39939e3eaac69c520ed4ad (diff)
send_mode event for spanningtree (this will be backported to stable as its really a bugfix too (honest!))
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4243 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/mode.cpp4
-rw-r--r--src/modules/m_spanningtree.cpp7
2 files changed, 7 insertions, 4 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 5d6be4e74..d17b6f13f 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -521,10 +521,6 @@ void ModeParser::CleanMask(std::string &mask)
}
}
-void ModeParser::BuildModeString(userrec* user)
-{
-}
-
bool ModeParser::AddMode(ModeHandler* mh, unsigned const char modeletter)
{
unsigned char mask = 0;
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 076241dea..ec5d6a517 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -3921,6 +3921,13 @@ class ModuleSpanningTree : public Module
(*params)[2] = ":" + (*params)[2];
DoOneToMany(Srv->GetServerName(),"METADATA",*params);
}
+ else if (event->GetEventID() == "send_mode")
+ {
+ std::deque<std::string>* params = (std::deque<std::string>*)event->GetData();
+ if (params->size() < 2)
+ return;
+ DoOneToMany(Srv->GetServerName(),"FMODE",*params);
+ }
}
virtual ~ModuleSpanningTree()