X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_away.cpp;h=de0969af404a21af9adf0282b70e86d25be25cd8;hb=882084defcc43c876ecb10e30086b63ac074fcad;hp=fa3f7fae942ae9dd12c38f4f08d014a8ace79024;hpb=7998173bcebb06e5e43e3337cc029eba3389199f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_away.cpp b/src/commands/cmd_away.cpp index fa3f7fae9..de0969af4 100644 --- a/src/commands/cmd_away.cpp +++ b/src/commands/cmd_away.cpp @@ -38,6 +38,10 @@ class CommandAway : 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) + { + return (IS_LOCAL(user) ? ROUTE_LOCALONLY : ROUTE_BROADCAST); + } }; /** Handle /AWAY