From f1956b039d3c7be38ad03fbb79be6a4eed440cf0 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 11 Aug 2013 17:14:39 -0400 Subject: Remove channels from accesss lists when they expire/drop --- include/regchannel.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 references; private: Serialize::Reference founder; /* Channel founder */ Serialize::Reference 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 &chans); }; /** Is the user the real founder? -- cgit