mirror of
https://github.com/anope/anope.git
synced 2026-06-26 19:16:38 +02:00
Made access del by nick and other functions from 326f1a really delete objects
This commit is contained in:
+6
-2
@@ -97,8 +97,12 @@ ChanAccess::ChanAccess(AccessProvider *p) : Serializable("ChanAccess"), provider
|
||||
|
||||
ChanAccess::~ChanAccess()
|
||||
{
|
||||
if (ci)
|
||||
ci->EraseAccess(this);
|
||||
if (this->ci)
|
||||
{
|
||||
std::vector<ChanAccess *>::iterator it = std::find(this->ci->access->begin(), this->ci->access->end(), this);
|
||||
if (it != this->ci->access->end())
|
||||
this->ci->access->erase(it);
|
||||
}
|
||||
}
|
||||
|
||||
void ChanAccess::Serialize(Serialize::Data &data) const
|
||||
|
||||
Reference in New Issue
Block a user