mirror of
https://github.com/anope/anope.git
synced 2026-06-29 11:36:38 +02:00
Rewrote how commands are handled within Anope.
This allows naming commands and having spaces within command names.
This commit is contained in:
+2
-7
@@ -1,5 +1,6 @@
|
||||
#include "services.h"
|
||||
#include <stack>
|
||||
#include "modules.h"
|
||||
#include "commands.h"
|
||||
|
||||
std::vector<Anope::string> languages;
|
||||
std::vector<Anope::string> domains;
|
||||
@@ -94,9 +95,3 @@ const char *anope_gettext(const char *lang, const char *string)
|
||||
}
|
||||
#endif
|
||||
|
||||
void SyntaxError(CommandSource &source, const Anope::string &command, const Anope::string &message)
|
||||
{
|
||||
source.Reply(_("Syntax: \002%s\002"), message.c_str());
|
||||
source.Reply(_(_(MORE_INFO)), Config->UseStrictPrivMsgString.c_str(), source.owner->nick.c_str(), command.c_str());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user