summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/channels.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 883ae3954..672d46ea9 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -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')))
{
/*