From fc4d8fc4cc409770c0488c7b56f1b140dcbd2397 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:52:28 +0000 Subject: Change more modules to use VF_OPTCOMMON routing git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11654 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_sakick.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/modules/m_sakick.cpp') diff --git a/src/modules/m_sakick.cpp b/src/modules/m_sakick.cpp index 860f18132..8b94c934c 100644 --- a/src/modules/m_sakick.cpp +++ b/src/modules/m_sakick.cpp @@ -83,6 +83,14 @@ class CommandSakick : public Command return CMD_FAILURE; } + + RouteDescriptor GetRouting(User* user, const std::vector& parameters) + { + User* dest = ServerInstance->FindNick(parameters[1]); + if (dest) + return ROUTE_OPT_UCAST(dest->server); + return ROUTE_LOCALONLY; + } }; class ModuleSakick : public Module @@ -101,7 +109,7 @@ class ModuleSakick : public Module virtual Version GetVersion() { - return Version("$Id$", VF_COMMON|VF_VENDOR, API_VERSION); + return Version("$Id$", VF_OPTCOMMON|VF_VENDOR, API_VERSION); } }; -- cgit v1.3.1-10-gc9f91