summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-21 02:10:12 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-21 02:10:12 +0000
commit924bde50a2459ba399254ce2fd0e49d0e72ed7a7 (patch)
treef0bb861a104a6b8e4b4be6edb54f38cb85917fbb /src
parent13618fb4e55b3256d846829d00e4116a4ca42099 (diff)
Always use user->SplitChanList in whois reply [jackmcbarn]
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11750 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/whois.cpp20
1 files changed, 2 insertions, 18 deletions
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"))