mirror of
https://github.com/anope/anope.git
synced 2026-06-26 07:56:39 +02:00
Channel::DeleteUser delets the container
This commit is contained in:
+3
-2
@@ -82,11 +82,12 @@ void Join::Run(MessageSource &source, const std::vector<Anope::string> ¶ms)
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user