summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-06-02 18:05:01 +0200
committerattilamolnar <attilamolnar@hush.com>2013-06-02 18:05:01 +0200
commitca4c4a67988419b9eb479ffcf82238dc1648b0ad (patch)
treed70b93690bd3c4881b1b105570d653433af07de2 /src/commands
parent94c248f9dac7b32189f45445896eeecd57ad1d36 (diff)
Route WALLOPS like a regular command, remove OnWallops hook
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/cmd_wallops.cpp6
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;
}