diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-15 20:31:35 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-15 20:31:35 +0000 |
commit | 57e51adaf1b1e30b06bebf5fe8fb13e937e96c5e (patch) | |
tree | dbc578c1e6df8683736891283326303e47fddecf /src/modules/m_watch.cpp | |
parent | f8ccaed31d68661d16eae1a412b337af09de111b (diff) |
Route SVSSILENCE/SVSWATCH using OPT_UCAST, marking them OPTCOMMON
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12264 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_watch.cpp')
-rw-r--r-- | src/modules/m_watch.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index 1ac93bb00..78da2799b 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -128,7 +128,10 @@ class CommandSVSWatch : public Command RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters) { - return ROUTE_BROADCAST; + User* target = ServerInstance->FindNick(parameters[0]); + if (target) + return ROUTE_OPT_UCAST(target->server); + return ROUTE_LOCALONLY; } }; @@ -528,7 +531,7 @@ class Modulewatch : public Module virtual Version GetVersion() { - return Version("Provides support for the /WATCH command", VF_COMMON | VF_VENDOR); + return Version("Provides support for the /WATCH command", VF_OPTCOMMON | VF_VENDOR); } }; |