diff options
| author | 2013-06-02 18:05:01 +0200 | |
|---|---|---|
| committer | 2013-06-02 18:05:01 +0200 | |
| commit | ca4c4a67988419b9eb479ffcf82238dc1648b0ad (patch) | |
| tree | d70b93690bd3c4881b1b105570d653433af07de2 /src/commands/cmd_wallops.cpp | |
| parent | Merge pull request #550 from Adam-/master+sepstream (diff) | |
Route WALLOPS like a regular command, remove OnWallops hook
Diffstat (limited to 'src/commands/cmd_wallops.cpp')
| -rw-r--r-- | src/commands/cmd_wallops.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/commands/cmd_wallops.cpp b/src/commands/cmd_wallops.cpp index 198997a95..3cd8abc42 100644 --- a/src/commands/cmd_wallops.cpp +++ b/src/commands/cmd_wallops.cpp @@ -38,6 +38,11 @@ class CommandWallops : public Command * @return A value from CmdResult to indicate command success or failure. */ CmdResult Handle(const std::vector<std::string>& parameters, User *user); + + RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters) + { + return ROUTE_BROADCAST; + } }; CmdResult CommandWallops::Handle (const std::vector<std::string>& parameters, User *user) @@ -52,7 +57,6 @@ CmdResult CommandWallops::Handle (const std::vector<std::string>& parameters, Us user->WriteTo(t,wallop); } - FOREACH_MOD(I_OnWallops,OnWallops(user,parameters[0])); return CMD_SUCCESS; } |
