summaryrefslogtreecommitdiff
path: root/include/regchannel.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-02-05 09:45:48 -0500
committerAdam <Adam@anope.org>2013-02-05 09:45:48 -0500
commit25cec015e8276ea6e1de3e290696071fa5c0b66f (patch)
tree536cf9ea6b424a550d0e912c49f8b0619892b5cf /include/regchannel.h
parent62e3c8c4f8ccbba3cc6e62fb970d38be25a654e4 (diff)
Made access del by nick and other functions from 326f1a really delete objects
Diffstat (limited to 'include/regchannel.h')
-rw-r--r--include/regchannel.h16
1 files changed, 4 insertions, 12 deletions
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<Anope::string, int16_t> levels;
public:
+ friend class ChanAccess;
+ friend class AutoKick;
+ friend class BadWord;
+
typedef std::multimap<Anope::string, ModeLock *> ModeList;
Serialize::Checker<ModeList> mode_locks;
Serialize::Checker<std::vector<LogSetting *> > 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
*/