mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Fix to not hide invisible users non-common channels in whois (rfc doesnt state this)
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4565 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
0277a66fdd
commit
7b9fe58932
@ -402,7 +402,6 @@ std::string chlist(userrec *user,userrec* source)
|
||||
{
|
||||
return lst;
|
||||
}
|
||||
bool userinvisible = (user->modebits & UM_INVISIBLE);
|
||||
for (std::vector<ucrec*>::const_iterator i = user->chans.begin(); i != user->chans.end(); i++)
|
||||
{
|
||||
if ((((ucrec*)(*i))->channel != NULL) && (((ucrec*)(*i))->channel->name))
|
||||
@ -412,9 +411,9 @@ std::string chlist(userrec *user,userrec* source)
|
||||
{
|
||||
// if the channel is NOT private/secret, OR the source user is on the channel, AND the user is not invisible.
|
||||
// if the user is the same as the source, shortcircuit the comparison.
|
||||
if ((source == user) || ((((!(((ucrec*)(*i))->channel->modes[CM_PRIVATE])) && (!(((ucrec*)(*i))->channel->modes[CM_SECRET])) && (!userinvisible)) || (((ucrec*)(*i))->channel->HasUser(source)))))
|
||||
if ((source == user) || ((((!(((ucrec*)(*i))->channel->modes[CM_PRIVATE])) && (!(((ucrec*)(*i))->channel->modes[CM_SECRET]))) || (((ucrec*)(*i))->channel->HasUser(source)))))
|
||||
{
|
||||
lst = lst + std::string(cmode(user,((ucrec*)(*i))->channel)) + std::string(((ucrec*)(*i))->channel->name) + " ";
|
||||
lst.append(cmode(user,((ucrec*)(*i))->channel)).append(((ucrec*)(*i))->channel->name).append(" ");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user