diff options
Diffstat (limited to 'include/access.h')
-rw-r--r-- | include/access.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/access.h b/include/access.h index 57229abab..323dc814d 100644 --- a/include/access.h +++ b/include/access.h @@ -74,6 +74,10 @@ class CoreExport AccessProvider : public Service /* Represents one entry of an access list on a channel. */ class CoreExport ChanAccess : public Serializable { + Anope::string mask; + /* account this access entry is for, if any */ + Serialize::Reference<NickCore> nc; + public: typedef std::multimap<const ChanAccess *, const ChanAccess *> Set; /* shows the 'path' taken to determine if an access entry matches a user @@ -86,9 +90,6 @@ class CoreExport ChanAccess : public Serializable AccessProvider *provider; /* Channel this access entry is on */ Serialize::Reference<ChannelInfo> ci; - /* account this access entry is for, if any */ - Serialize::Reference<NickCore> nc; - Anope::string mask; Anope::string creator; time_t last_seen; time_t created; @@ -96,6 +97,10 @@ class CoreExport ChanAccess : public Serializable ChanAccess(AccessProvider *p); virtual ~ChanAccess(); + void SetMask(const Anope::string &mask, ChannelInfo *ci); + const Anope::string &Mask() const; + NickCore *GetAccount() const; + void Serialize(Serialize::Data &data) const anope_override; static Serializable* Unserialize(Serializable *obj, Serialize::Data &); |