X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fusers.h;h=4d7994e8ef995eb6527e454514b111301fcd4a59;hb=6fcbfc072387752ec345d7589e986b9959f350fc;hp=c08be8c6fec737ce208953e28c79743cf35a2884;hpb=0a67b8861adfca7b09e59d9639e26b6bf71859a5;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/users.h b/include/users.h index c08be8c6f..4d7994e8e 100644 --- a/include/users.h +++ b/include/users.h @@ -490,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 @@ -692,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; }; @@ -879,6 +885,9 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node