summaryrefslogtreecommitdiff
path: root/src/modules/m_sapart.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:52:28 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:52:28 +0000
commitfc4d8fc4cc409770c0488c7b56f1b140dcbd2397 (patch)
tree6f360605185e2ed6fb61b0cec55b4947e32d0c3c /src/modules/m_sapart.cpp
parent68174076d7d665340ca992f88013dc2e6035a0a8 (diff)
Change more modules to use VF_OPTCOMMON routing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11654 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_sapart.cpp')
-rw-r--r--src/modules/m_sapart.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/m_sapart.cpp b/src/modules/m_sapart.cpp
index a44131129..0c0ac7e13 100644
--- a/src/modules/m_sapart.cpp
+++ b/src/modules/m_sapart.cpp
@@ -82,6 +82,14 @@ class CommandSapart : public Command
return CMD_FAILURE;
}
+
+ RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters)
+ {
+ User* dest = ServerInstance->FindNick(parameters[0]);
+ if (dest)
+ return ROUTE_OPT_UCAST(dest->server);
+ return ROUTE_LOCALONLY;
+ }
};
@@ -101,7 +109,7 @@ class ModuleSapart : public Module
virtual Version GetVersion()
{
- return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION);
+ return Version("$Id$", VF_OPTCOMMON | VF_VENDOR, API_VERSION);
}
};