]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Add the inspircd.org/standard-replies capability.
[user/henk/code/inspircd.git] / include / users.h
index ca9c3f55703169fc016632a82183cf9a8748b53d..4d7994e8ef995eb6527e454514b111301fcd4a59 100644 (file)
@@ -149,6 +149,12 @@ struct CoreExport ConnectClass : public refcountbase
         */
        insp::flat_set<int> ports;
 
+       /** If non-empty then the password a user must specify in PASS to be assigned to this class. */
+       std::string password;
+
+       /** If non-empty then the hash algorithm that the password field is hashed with. */
+       std::string passwordhash;
+
        /** Create a new connect class with no settings.
         */
        ConnectClass(ConfigTag* tag, char type, const std::string& mask);
@@ -484,6 +490,12 @@ class CoreExport User : public Extensible
         */
        virtual bool HasModePermission(const ModeHandler* mh) const;
 
+       /** Determines whether this user can set the specified snomask.
+        * @param chr The server notice mask character to look up.
+        * @return True if the user can set the specified snomask; otherwise, false.
+        */
+       virtual bool HasSnomaskPermission(char chr) const;
+
        /** Creates a usermask with real host.
         * Takes a buffer to use and fills the given buffer with the hostmask in the format user\@host
         * @return the usermask in the format user\@host
@@ -686,10 +698,10 @@ class CoreExport User : public Extensible
        virtual ~User();
        CullResult cull() CXX11_OVERRIDE;
 
-       /** @copydoc Serializable::Deserialize. */
+       /** @copydoc Serializable::Deserialize */
        bool Deserialize(Data& data) CXX11_OVERRIDE;
 
-       /** @copydoc Serializable::Deserialize. */
+       /** @copydoc Serializable::Deserialize */
        bool Serialize(Serializable::Data& data) CXX11_OVERRIDE;
 };
 
@@ -873,6 +885,9 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
         */
        bool HasModePermission(const ModeHandler* mh) const CXX11_OVERRIDE;
 
+       /** @copydoc User::HasSnomaskPermission */
+       bool HasSnomaskPermission(char chr) const CXX11_OVERRIDE;
+
        /** Change nick to uuid, unset REG_NICK and send a nickname overruled numeric.
         * This is called when another user (either local or remote) needs the nick of this user and this user
         * isn't registered.
@@ -890,10 +905,10 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
         */
        void Send(ClientProtocol::EventProvider& protoevprov, ClientProtocol::Message& msg);
 
-       /** @copydoc Serializable::Deserialize. */
+       /** @copydoc Serializable::Deserialize */
        bool Deserialize(Data& data) CXX11_OVERRIDE;
 
-       /** @copydoc Serializable::Deserialize. */
+       /** @copydoc Serializable::Deserialize */
        bool Serialize(Serializable::Data& data) CXX11_OVERRIDE;
 };