From f4d202cdbbcaa9e17c21e3f74d7816f58b2ffc6a Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 26 Jul 2006 21:54:36 +0000 Subject: Add extra method to mode handler, ModeHandler::ModeSet(). Returns a std::pair. if the bool is true, the mode is set, and the second item in the pair is the parameter set on it, if any If the bool is false, the mode is not set, and the parameter given is returned as the second item of the pair To be used in mode bouncing, to build a safe set of bounced modes (dont ask yet) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4549 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules/m_spanningtree.cpp') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index f14cc69de..e1834721d 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -945,6 +945,11 @@ class TreeSocket : public InspSocket } } DoOneToOne(source,"FMODE",params,source); + /* XXX: We should check that we arent bouncing anything thats already set at this end. + * If we are, bounce +ourmode. + * + * E.G. They send +l 50, we have +l 10 set. rather than bounce -l 50, we bounce +l 10. + */ log(DEBUG,"Mode bounced, our TS less than theirs"); } else -- cgit v1.3.1-10-gc9f91