]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_oper/core_oper.h
Add SERVICE_CUSTOM for services managed by a module
[user/henk/code/inspircd.git] / src / coremods / core_oper / core_oper.h
index 2e2a152a0dca74ad961bb1684604d1996cac677f..338a369f518f3ba5cebd5964924ce81ec0ea16be 100644 (file)
 
 #include "inspircd.h"
 
+namespace DieRestart
+{
+       /** Checks a die or restart password
+        * @param user The user executing /DIE or /RESTART
+        * @param inputpass The password given by the user
+        * @param confkey The name of the key in the power tag containing the correct password
+        * @return True if the given password was correct, false if it was not
+        */
+       bool CheckPass(User* user, const std::string& inputpass, const char* confkey);
+
+       /** Send an ERROR to unregistered users and a NOTICE to all registered local users
+        * @param message Message to send
+        */
+       void SendError(const std::string& message);
+}
+
 /** Handle /DIE.
  */
 class CommandDie : public Command