From 4a25e2f3b277706c87fb363b3aec3f0c5a654ee1 Mon Sep 17 00:00:00 2001 From: aquanight Date: Fri, 18 Apr 2008 21:49:23 +0000 Subject: Make the CAPAB sender in spanningtree more readable git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9536 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/capab.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index aa69e2ee6..5919c65bb 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -80,7 +80,23 @@ void TreeSocket::SendCapabilities() extra = " CHALLENGE=" + this->GetOurChallenge(); } - this->WriteLine("CAPAB CAPABILITIES :NICKMAX="+ConvToStr(NICKMAX)+" HALFOP="+ConvToStr(this->Instance->Config->AllowHalfop)+" CHANMAX="+ConvToStr(CHANMAX)+" MAXMODES="+ConvToStr(MAXMODES)+" IDENTMAX="+ConvToStr(IDENTMAX)+" MAXQUIT="+ConvToStr(MAXQUIT)+" MAXTOPIC="+ConvToStr(MAXTOPIC)+" MAXKICK="+ConvToStr(MAXKICK)+" MAXGECOS="+ConvToStr(MAXGECOS)+" MAXAWAY="+ConvToStr(MAXAWAY)+" IP6NATIVE="+ConvToStr(ip6)+" IP6SUPPORT="+ConvToStr(ip6support)+" PROTOCOL="+ConvToStr(ProtocolVersion)+extra+" PREFIX="+Instance->Modes->BuildPrefixes()+" CHANMODES="+Instance->Modes->ChanModes()+" SVSPART=1"); + this->WriteLine("CAPAB CAPABILITIES " /* Preprocessor does this one. */ + ":NICKMAX="+ConvToStr(NICKMAX)+ + " HALFOP="+ConvToStr(this->Instance->Config->AllowHalfop)+ + " CHANMAX="+ConvToStr(CHANMAX)+ + " MAXMODES="+ConvToStr(MAXMODES)+ + " IDENTMAX="+ConvToStr(IDENTMAX)+ + " MAXQUIT="+ConvToStr(MAXQUIT)+ + " MAXTOPIC="+ConvToStr(MAXTOPIC)+ + " MAXKICK="+ConvToStr(MAXKICK)+ + " MAXGECOS="+ConvToStr(MAXGECOS)+ + " MAXAWAY="+ConvToStr(MAXAWAY)+ + " IP6NATIVE="+ConvToStr(ip6)+ + " IP6SUPPORT="+ConvToStr(ip6support)+ + " PROTOCOL="+ConvToStr(ProtocolVersion)+extra+ + " PREFIX="+Instance->Modes->BuildPrefixes()+ + " CHANMODES="+Instance->Modes->ChanModes()+ + " SVSPART=1"); this->WriteLine("CAPAB END"); } -- cgit v1.2.3