From cb1a0e5612d04a8bd8d5b0fac7143ef7eb865dfd Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 21 Sep 2009 19:54:24 +0000 Subject: Fix RSQUIT/RCONNECT routing git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11755 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/rconnect.cpp | 4 ++++ src/modules/m_spanningtree/rconnect.h | 1 + src/modules/m_spanningtree/rsquit.cpp | 5 +++++ src/modules/m_spanningtree/rsquit.h | 1 + 4 files changed, 11 insertions(+) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/rconnect.cpp b/src/modules/m_spanningtree/rconnect.cpp index a62ef5cf3..422a4b428 100644 --- a/src/modules/m_spanningtree/rconnect.cpp +++ b/src/modules/m_spanningtree/rconnect.cpp @@ -59,3 +59,7 @@ CmdResult CommandRConnect::Handle (const std::vector& parameters, U return CMD_SUCCESS; } +RouteDescriptor CommandRConnect::GetRouting(User* user, const std::vector& parameters) +{ + return ROUTE_UNICAST(parameters[0]); +} diff --git a/src/modules/m_spanningtree/rconnect.h b/src/modules/m_spanningtree/rconnect.h index dc62d231d..1b24ad0f3 100644 --- a/src/modules/m_spanningtree/rconnect.h +++ b/src/modules/m_spanningtree/rconnect.h @@ -22,6 +22,7 @@ class CommandRConnect : public Command public: CommandRConnect (Module* Callback, SpanningTreeUtilities* Util); CmdResult Handle (const std::vector& parameters, User *user); + RouteDescriptor GetRouting(User* user, const std::vector& parameters); }; #endif diff --git a/src/modules/m_spanningtree/rsquit.cpp b/src/modules/m_spanningtree/rsquit.cpp index 25b3c54d1..194536c47 100644 --- a/src/modules/m_spanningtree/rsquit.cpp +++ b/src/modules/m_spanningtree/rsquit.cpp @@ -68,6 +68,11 @@ CmdResult CommandRSQuit::Handle (const std::vector& parameters, Use return CMD_SUCCESS; } +RouteDescriptor CommandRSQuit::GetRouting(User* user, const std::vector& parameters) +{ + return ROUTE_UNICAST(parameters[0]); +} + // XXX use protocol interface instead of rolling our own :) void CommandRSQuit::NoticeUser(User* user, const std::string &msg) { diff --git a/src/modules/m_spanningtree/rsquit.h b/src/modules/m_spanningtree/rsquit.h index 48abd5c5c..887f77b6f 100644 --- a/src/modules/m_spanningtree/rsquit.h +++ b/src/modules/m_spanningtree/rsquit.h @@ -22,6 +22,7 @@ class CommandRSQuit : public Command public: CommandRSQuit (Module* Callback, SpanningTreeUtilities* Util); CmdResult Handle (const std::vector& parameters, User *user); + RouteDescriptor GetRouting(User* user, const std::vector& parameters); void NoticeUser(User* user, const std::string &msg); }; -- cgit v1.2.3