From a01d6ade99770a6262f4858bdd92b43bc230bab0 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 25 Feb 2009 17:26:17 +0000 Subject: Clarify CMD_LOCALONLY return values for /WATCH git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11151 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_watch.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index 42a4b8705..cfa8e038b 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -183,11 +183,7 @@ class CommandWatch : public Command } } - /* This might seem confusing, but we return CMD_FAILURE - * to indicate that this message shouldnt be routed across - * the network to other linked servers. - */ - return CMD_FAILURE; + return CMD_LOCALONLY; } CmdResult add_watch(User* user, const char* nick) @@ -252,7 +248,7 @@ class CommandWatch : public Command } } - return CMD_FAILURE; + return CMD_LOCALONLY; } CommandWatch (InspIRCd* Instance, unsigned int &maxwatch) : Command(Instance,"WATCH",0,0), MAX_WATCH(maxwatch) @@ -365,8 +361,7 @@ class CommandWatch : public Command } } } - /* So that spanningtree doesnt pass the WATCH commands to the network! */ - return CMD_FAILURE; + return CMD_LOCALONLY; } }; -- cgit v1.2.3