mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Don't send quitting users in RPL_NAMREPLY, fixes desyncing clients who join a channel after a user has quit but before they are culled
This commit is contained in:
parent
504caa8ca9
commit
c7a5cc0a98
@ -718,7 +718,7 @@ int Channel::CountInvisible()
|
||||
int count = 0;
|
||||
for (UserMembIter i = userlist.begin(); i != userlist.end(); i++)
|
||||
{
|
||||
if (!(i->first->IsModeSet('i')))
|
||||
if (!i->first->quitting && !i->first->IsModeSet('i'))
|
||||
count++;
|
||||
}
|
||||
|
||||
@ -793,6 +793,8 @@ void Channel::UserList(User *user)
|
||||
|
||||
for (UserMembIter i = userlist.begin(); i != userlist.end(); i++)
|
||||
{
|
||||
if (i->first->quitting)
|
||||
continue;
|
||||
if ((!has_user) && (i->first->IsModeSet('i')))
|
||||
{
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user