From 75d9c67804196c2e4059f3ff89f2ed5ee79a175f Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 1 Oct 2009 21:41:52 +0000 Subject: Add ROUTE_TYPE_MESSAGE and use for PRIVMSG/NOTICE routing git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11791 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_notice.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/commands/cmd_notice.cpp') diff --git a/src/commands/cmd_notice.cpp b/src/commands/cmd_notice.cpp index a14473643..41dbe5b3b 100644 --- a/src/commands/cmd_notice.cpp +++ b/src/commands/cmd_notice.cpp @@ -30,6 +30,15 @@ class CommandNotice : public Command * @return A value from CmdResult to indicate command success or failure. */ CmdResult Handle(const std::vector& parameters, User *user); + + RouteDescriptor GetRouting(User* user, const std::vector& parameters) + { + if (IS_LOCAL(user)) + // This is handled by the OnUserNotice hook to split the LoopCall pieces + return ROUTE_LOCALONLY; + else + return ROUTE_MESSAGE(parameters[0]); + } }; -- cgit v1.2.3