mirror of
https://github.com/anope/anope.git
synced 2026-06-25 05:16:38 +02:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c3302194eb | |||
| cd184596a2 | |||
| f28b1142f5 | |||
| 87230c17b7 | |||
| a29b7897f0 | |||
| e965bc3049 | |||
| 01780c9e7a |
+1
-1
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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/.");
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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> ¶ms) anope_override
|
||||
{
|
||||
User *u = User::Find(params[0]);
|
||||
if (u)
|
||||
u->SetRealname(params[1]);
|
||||
User *u = source.GetUser();
|
||||
u->SetRealname(params[0]);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -261,6 +261,7 @@ class OperServCore : public Module
|
||||
if (x)
|
||||
{
|
||||
this->sqlines.OnMatch(u, x);
|
||||
reason = x->reason;
|
||||
return EVENT_STOP;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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
@@ -3,5 +3,5 @@
|
||||
VERSION_MAJOR="2"
|
||||
VERSION_MINOR="0"
|
||||
VERSION_PATCH="0"
|
||||
VERSION_EXTRA="-rc2"
|
||||
VERSION_EXTRA="-rc3"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user