]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Wrong nicklen is shown in the 005 numeric, fixed (noticed by ThaPrince)
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 22 Jan 2006 23:46:59 +0000 (23:46 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 22 Jan 2006 23:46:59 +0000 (23:46 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2847 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspircd.cpp

index b7324a167ec4ae5876f018747c5f9df961f38c47..56fc1c4552aa1c3e64f1dde1fdc87a6d6c9ef907 100644 (file)
@@ -343,7 +343,7 @@ void InspIRCd::BuildISupport()
 {
         // the neatest way to construct the initial 005 numeric, considering the number of configure constants to go in it...
        std::stringstream v;
-       v << "WALLCHOPS MODES=13 CHANTYPES=# PREFIX=(ohv)@%+ MAP SAFELIST MAXCHANNELS=" << MAXCHANS << " MAXBANS=60 NICKLEN=" << NICKMAX;
+       v << "WALLCHOPS MODES=13 CHANTYPES=# PREFIX=(ohv)@%+ MAP SAFELIST MAXCHANNELS=" << MAXCHANS << " MAXBANS=60 NICKLEN=" << NICKMAX-1;
        v << " CASEMAPPING=rfc1459 STATUSMSG=@+ CHARSET=ascii TOPICLEN=" << MAXTOPIC << " KICKLEN=" << MAXKICK << " MAXTARGETS=20 AWAYLEN=";
        v << MAXAWAY << " CHANMODES=ohvb,k,l,psmnti NETWORK=" << Config->Network;
        Config->data005 = v.str();