diff options
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) { |