1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 06:16:38 +02:00

Channel::DeleteUser delets the container

This commit is contained in:
Adam
2015-09-17 12:31:02 -04:00
parent 1ac4a1d9a5
commit 2e65bd4012
+3 -2
View File
@@ -82,11 +82,12 @@ void Join::Run(MessageSource &source, const std::vector<Anope::string> &params)
for (User::ChanUserList::iterator it = user->chans.begin(), it_end = user->chans.end(); it != it_end; )
{
ChanUserContainer *cc = it->second;
Channel *c = cc->chan;
++it;
FOREACH_MOD(OnPrePartChannel, (user, cc->chan));
FOREACH_MOD(OnPrePartChannel, (user, c));
cc->chan->DeleteUser(user);
FOREACH_MOD(OnPartChannel, (user, cc->chan, cc->chan->name, ""));
FOREACH_MOD(OnPartChannel, (user, c, c->name, ""));
}
continue;
}