this->SendWhoisLine(user, dest, 378, "%s %s :is connecting from %s@%s %s", user->nick.c_str(), dest->nick.c_str(), dest->ident.c_str(), dest->host.c_str(), dest->GetIPString());
}
- std::string cl = dest->ChannelList(user);
+ std::string cl = dest->ChannelList(user, false);
if (cl.length())
+ user->SplitChanList(dest,cl);
+ if (IS_OPER(user) && ServerInstance->Config->OperSpyWhois)
{
- if (cl.length() > 400)
+ std::string scl = dest->ChannelList(user, true);
+ if (scl.length())
{
- user->SplitChanList(dest,cl);
- }
- else
- {
- this->SendWhoisLine(user, dest, 319, "%s %s :%s",user->nick.c_str(), dest->nick.c_str(), cl.c_str());
+ this->SendWhoisLine(user, dest, 336, "%s %s :is on private/secret channels:",user->nick.c_str(), dest->nick.c_str());
+ user->SplitChanList(dest,scl);
}
}
if (user != dest && *this->Config->HideWhoisServer && !user->HasPrivPermission("servers/auspex"))