1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 07:03:13 +02:00

Rewrote how commands are handled within Anope.

This allows naming commands and having spaces within command names.
This commit is contained in:
Adam
2011-07-14 02:31:12 -04:00
parent 924f6849fe
commit f858164dee
227 changed files with 8808 additions and 12352 deletions
+5 -8
View File
@@ -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> &params)
EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector<Anope::string> &params)
{
if (ignore_pre_command)
{