]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_oper/core_oper.cpp
Merge pull request #1217 from SaberUK/master+die-restart
[user/henk/code/inspircd.git] / src / coremods / core_oper / core_oper.cpp
index 0fc82df8f09bf0fe2925471121452f55ac23e39e..a6b2abd81194a8f6722481aca6b3c5bc0d166b9f 100644 (file)
@@ -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);
        }
 }