X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fwhois.cpp;h=fc24d0c8231463f2d3485492ccf960a93dbbe3b8;hb=58895f9b1daa1e13927462d046a36dec853a40e0;hp=b967fac25bca3b0b94c7fb1c314d0996b52944f0;hpb=a068c47d71e9a922b145b7552b3a64d638c92171;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/whois.cpp b/src/whois.cpp index b967fac25..fc24d0c82 100644 --- a/src/whois.cpp +++ b/src/whois.cpp @@ -24,30 +24,14 @@ void InspIRCd::DoWhois(User* user, User* dest,unsigned long signon, unsigned lon std::string cl = dest->ChannelList(user, false); if (cl.length()) - { - if (cl.length() > 400) - { - user->SplitChanList(dest,cl); - } - else - { - this->SendWhoisLine(user, dest, 319, "%s %s :%s",user->nick.c_str(), dest->nick.c_str(), cl.c_str()); - } - } + user->SplitChanList(dest,cl); if (IS_OPER(user) && ServerInstance->Config->OperSpyWhois) { std::string scl = dest->ChannelList(user, true); if (scl.length()) { this->SendWhoisLine(user, dest, 336, "%s %s :is on private/secret channels:",user->nick.c_str(), dest->nick.c_str()); - if (scl.length() > 400) - { - user->SplitChanList(dest,scl); - } - else - { - this->SendWhoisLine(user, dest, 319, "%s %s :%s",user->nick.c_str(), dest->nick.c_str(), scl.c_str()); - } + user->SplitChanList(dest,scl); } } if (user != dest && *this->Config->HideWhoisServer && !user->HasPrivPermission("servers/auspex"))