From 1c1c5fc3f01c42a09d34594989679bbc8fb21c0d Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 3 Sep 2009 15:53:15 +0000 Subject: Remove CMD_LOCALONLY, enforce use of GetRouting for routed commands git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11671 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_watch.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/modules/m_watch.cpp') diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index 1cda4484f..31edcc0e2 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -125,6 +125,11 @@ class CommandSVSWatch : public Command return CMD_SUCCESS; } + + RouteDescriptor GetRouting(User* user, const std::vector& parameters) + { + return ROUTE_BROADCAST; + } }; /** Handle /WATCH @@ -182,7 +187,7 @@ class CommandWatch : public Command } } - return CMD_LOCALONLY; + return CMD_SUCCESS; } CmdResult add_watch(User* user, const char* nick) @@ -240,7 +245,7 @@ class CommandWatch : public Command } } - return CMD_LOCALONLY; + return CMD_SUCCESS; } CommandWatch (InspIRCd* Instance, Module* parent, unsigned int &maxwatch) : Command(Instance,parent,"WATCH",0,0), MAX_WATCH(maxwatch) @@ -352,7 +357,7 @@ class CommandWatch : public Command } } } - return CMD_LOCALONLY; + return CMD_SUCCESS; } }; -- cgit v1.2.3