diff options
author | Peter Powell <petpow@saberuk.com> | 2016-09-11 01:15:44 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2016-09-12 15:41:39 +0100 |
commit | 23f30d75fa4375e8818016367df6d0851c7651ac (patch) | |
tree | eab37b41f6138ab87938b90c641eac0a7d8aecc0 /src | |
parent | 02b32f624c0037614c0041cfbc4bbda0299024cf (diff) |
Undocument <power> and set the default to the server name.
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_oper/cmd_die.cpp | 2 | ||||
-rw-r--r-- | src/coremods/core_oper/cmd_restart.cpp | 2 | ||||
-rw-r--r-- | src/coremods/core_oper/core_oper.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/coremods/core_oper/cmd_die.cpp b/src/coremods/core_oper/cmd_die.cpp index 4bc6c25db..ff9318de1 100644 --- a/src/coremods/core_oper/cmd_die.cpp +++ b/src/coremods/core_oper/cmd_die.cpp @@ -26,7 +26,7 @@ CommandDie::CommandDie(Module* parent) : Command(parent, "DIE", 1) { flags_needed = 'o'; - syntax = "<password>"; + syntax = "<server>"; } static void QuitAll() diff --git a/src/coremods/core_oper/cmd_restart.cpp b/src/coremods/core_oper/cmd_restart.cpp index 3e219727f..836708626 100644 --- a/src/coremods/core_oper/cmd_restart.cpp +++ b/src/coremods/core_oper/cmd_restart.cpp @@ -25,7 +25,7 @@ CommandRestart::CommandRestart(Module* parent) : Command(parent, "RESTART", 1, 1) { flags_needed = 'o'; - syntax = "<password>"; + syntax = "<server>"; } CmdResult CommandRestart::Handle (const std::vector<std::string>& parameters, User *user) diff --git a/src/coremods/core_oper/core_oper.cpp b/src/coremods/core_oper/core_oper.cpp index 0fc82df8f..a6b2abd81 100644 --- a/src/coremods/core_oper/core_oper.cpp +++ b/src/coremods/core_oper/core_oper.cpp @@ -27,7 +27,7 @@ namespace DieRestart ConfigTag* tag = ServerInstance->Config->ConfValue("power"); // The hash method for *BOTH* the die and restart passwords const std::string hash = tag->getString("hash"); - const std::string correctpass = tag->getString(confentry); + const std::string correctpass = tag->getString(confentry, ServerInstance->Config->ServerName); return ServerInstance->PassCompare(user, correctpass, inputpass, hash); } } |