diff options
author | Adam <Adam@anope.org> | 2013-08-11 17:14:39 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-08-11 17:14:39 -0400 |
commit | f1956b039d3c7be38ad03fbb79be6a4eed440cf0 (patch) | |
tree | 483b29cf3c67af4742945213eb88a173ae5b6d6a /include/regchannel.h | |
parent | 53d5b7c29ea2f0164b562549cef579fe2b276abf (diff) |
Remove channels from accesss lists when they expire/drop
Diffstat (limited to 'include/regchannel.h')
-rw-r--r-- | include/regchannel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/regchannel.h b/include/regchannel.h index 3952e5a54..847e8e317 100644 --- a/include/regchannel.h +++ b/include/regchannel.h @@ -47,6 +47,8 @@ class CoreExport AutoKick : public Serializable */ class CoreExport ChannelInfo : public Serializable, public Extensible { + /* channels who reference this one */ + Anope::map<int> references; private: Serialize::Reference<NickCore> founder; /* Channel founder */ Serialize::Reference<NickCore> successor; /* Who gets the channel if the founder nick is dropped or expires */ @@ -230,6 +232,10 @@ class CoreExport ChannelInfo : public Serializable, public Extensible * @return the ChannelInfo associated with the channel */ static ChannelInfo* Find(const Anope::string &name); + + void AddChannelReference(const Anope::string &what); + void RemoveChannelReference(const Anope::string &what); + void GetChannelReferences(std::deque<Anope::string> &chans); }; /** Is the user the real founder? |