From 25cec015e8276ea6e1de3e290696071fa5c0b66f Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 5 Feb 2013 09:45:48 -0500 Subject: Made access del by nick and other functions from 326f1a really delete objects --- include/regchannel.h | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'include') diff --git a/include/regchannel.h b/include/regchannel.h index d98456e97..02d637800 100644 --- a/include/regchannel.h +++ b/include/regchannel.h @@ -165,6 +165,10 @@ class CoreExport ChannelInfo : public Serializable, public Extensible std::map levels; public: + friend class ChanAccess; + friend class AutoKick; + friend class BadWord; + typedef std::multimap ModeList; Serialize::Checker mode_locks; Serialize::Checker > log_settings; @@ -257,14 +261,6 @@ class CoreExport ChannelInfo : public Serializable, public Extensible */ void EraseAccess(unsigned index); - /** Erase an entry from the channel access list - * - * @param taccess The access to remove - * - * Clears the memory used by the given access entry and removes it from the vector. - */ - void EraseAccess(const ChanAccess *taccess); - /** Clear the entire channel access list * * Clears the entire access list by deleting every item and then clearing the vector. @@ -300,8 +296,6 @@ class CoreExport ChannelInfo : public Serializable, public Extensible */ unsigned GetAkickCount() const; - void EraseAkick(const AutoKick *akick); - /** Erase an entry from the channel akick list * @param index The index of the akick */ @@ -329,8 +323,6 @@ class CoreExport ChannelInfo : public Serializable, public Extensible */ unsigned GetBadWordCount() const; - void EraseBadWord(const BadWord *bw); - /** Remove a badword * @param index The index of the badword */ -- cgit