1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 06:43:13 +02:00

Made access del by nick and other functions from 326f1a really delete objects

This commit is contained in:
Adam
2013-02-05 09:45:48 -05:00
parent 62e3c8c4f8
commit 25cec015e8
7 changed files with 26 additions and 43 deletions
+4 -12
View File
@@ -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
*/