summaryrefslogtreecommitdiff
path: root/include/regchannel.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-08-11 17:14:39 -0400
committerAdam <Adam@anope.org>2013-08-11 17:14:39 -0400
commitf1956b039d3c7be38ad03fbb79be6a4eed440cf0 (patch)
tree483b29cf3c67af4742945213eb88a173ae5b6d6a /include/regchannel.h
parent53d5b7c29ea2f0164b562549cef579fe2b276abf (diff)
Remove channels from accesss lists when they expire/drop
Diffstat (limited to 'include/regchannel.h')
-rw-r--r--include/regchannel.h6
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?