1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 05:16:38 +02:00

Compare commits

..

7 Commits

8 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -1065,7 +1065,7 @@ mail
/*
* This is the encryption type used by the databases. This must be set correctly or
* your passwords will not work. Valid options are: md5, oldmd5, sha1, and none.
* your passwords will not work. Valid options are: md5, oldmd5, sha1, and plain.
* You must also be sure to load the correct encryption module below in the Encryption
* Modules section so that your passwords work.
*/
+1 -1
View File
@@ -147,7 +147,7 @@ while (1)
chop($input); # remove the trailing \n from the user input
if ($input eq "q") {
if (-e "build") {
if (-e "build/CMakeFiles") {
if (-e "cmake-bin") {
my $cmake_path = `find cmake-bin -name cmake -print0`;
system($cmake_path, "build/.");
+1 -1
View File
@@ -27,7 +27,7 @@ class CommandGLGlobal : public Command
const Anope::string &msg = params[0];
if (!GService)
source.Reply("No global reference, is gl_main loaded?");
source.Reply("No global reference, is global loaded?");
else
{
Log(LOG_ADMIN, source, this);
+2 -2
View File
@@ -441,7 +441,7 @@ static void LoadNicks()
char pwbuf[32];
READ(read_buffer(pwbuf, f));
if (hashm == "none")
if (hashm == "plain")
my_b64_encode(pwbuf, nc->pass);
else if (hashm == "md5" || hashm == "oldmd5")
nc->pass = Hex(pwbuf, 16);
@@ -1176,7 +1176,7 @@ class DBOld : public Module
hashm = Config->GetModule(this)->Get<const Anope::string>("hash");
if (hashm != "md5" && hashm != "oldmd5" && hashm != "sha1" && hashm != "none" && hashm != "sha256")
if (hashm != "md5" && hashm != "oldmd5" && hashm != "sha1" && hashm != "plain" && hashm != "sha256")
throw ModuleException("Invalid hash method");
}
+3 -4
View File
@@ -984,13 +984,12 @@ struct IRCDMessageSetIdent : IRCDMessage
struct IRCDMessageSetName : IRCDMessage
{
IRCDMessageSetName(Module *creator) : IRCDMessage(creator, "SETNAME", 1) { }
IRCDMessageSetName(Module *creator) : IRCDMessage(creator, "SETNAME", 1) { SetFlag(IRCDMESSAGE_REQUIRE_USER); }
void Run(MessageSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = User::Find(params[0]);
if (u)
u->SetRealname(params[1]);
User *u = source.GetUser();
u->SetRealname(params[0]);
}
};
+1
View File
@@ -261,6 +261,7 @@ class OperServCore : public Module
if (x)
{
this->sqlines.OnMatch(u, x);
reason = x->reason;
return EVENT_STOP;
}
+1 -1
View File
@@ -218,7 +218,7 @@ void Command::Run(CommandSource &source, const Anope::string &message)
if (it == source.service->commands.end())
{
if (has_help)
source.Reply(_("Unknown command \002%s\002. \"%s %s HELP\" for help."), message.c_str(), Config->StrictPrivmsg.c_str(), source.service->nick.c_str());
source.Reply(_("Unknown command \002%s\002. \"%s%s HELP\" for help."), message.c_str(), Config->StrictPrivmsg.c_str(), source.service->nick.c_str());
else
source.Reply(_("Unknown command \002%s\002."), message.c_str());
return;
+1 -1
View File
@@ -3,5 +3,5 @@
VERSION_MAJOR="2"
VERSION_MINOR="0"
VERSION_PATCH="0"
VERSION_EXTRA="-rc2"
VERSION_EXTRA="-rc3"