diff options
author | Adam <Adam@anope.org> | 2011-07-14 02:31:12 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-07-14 02:31:12 -0400 |
commit | f858164deed48f2dcacd5ffc06a55398a54da7e8 (patch) | |
tree | 89c3cf36bd8e94942370135218d67d6d17ee222e /modules/extra/m_async_commands.cpp | |
parent | 924f6849fee4598a1a3a7f1a98d96b79e5ffd3b4 (diff) |
Rewrote how commands are handled within Anope.
This allows naming commands and having spaces within command names.
Diffstat (limited to 'modules/extra/m_async_commands.cpp')
-rw-r--r-- | modules/extra/m_async_commands.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/modules/extra/m_async_commands.cpp b/modules/extra/m_async_commands.cpp index c223bcdc5..665ee536d 100644 --- a/modules/extra/m_async_commands.cpp +++ b/modules/extra/m_async_commands.cpp @@ -53,12 +53,9 @@ class AsynchCommandMutex : public CommandMutex } else { - CommandReturn ret = command->Execute(source, params); - if (ret != MOD_STOP) - { - FOREACH_MOD(I_OnPostCommand, OnPostCommand(source, command, params)); - source.DoReply(); - } + command->Execute(source, params); + FOREACH_MOD(I_OnPostCommand, OnPostCommand(source, command, params)); + source.DoReply(); } main_mutex.Unlock(); @@ -134,14 +131,14 @@ class ModuleAsynchCommands : public Module, public Pipe, public AsynchCommandsSe { AsynchCommandMutex *cm = debug_cast<AsynchCommandMutex *>(*it); - if (cm->started && (cm->command == b || cm->source.u == b || cm->source.owner == b || cm->source.service == b || cm->source.ci == b)) + if (cm->started && (cm->command == b || cm->source.u == b || cm->source.owner == b || cm->source.service == b)) cm->Destroy(); } this->reset = true; } - EventReturn OnPreCommand(CommandSource &source, Command *command, const std::vector<Anope::string> ¶ms) + EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector<Anope::string> ¶ms) { if (ignore_pre_command) { |