]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Replaced some 005 constants with their configured values
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 27 Mar 2005 20:27:55 +0000 (20:27 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 27 Mar 2005 20:27:55 +0000 (20:27 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@922 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspircd.cpp

index 5e1c874f2f7c6aeb2879b86c0b65a92e9346862d..9d3addf1bbf55c5fab7822dde7c4dc009d621af9 100644 (file)
@@ -2399,7 +2399,13 @@ void ConnectUser(userrec *user)
        WriteServ(user->fd,"002 %s :Your host is %s, running version %s",user->nick,ServerName,VERSION);
        WriteServ(user->fd,"003 %s :This server was created %s %s",user->nick,__TIME__,__DATE__);
        WriteServ(user->fd,"004 %s %s %s iowghraAsORVSxNCWqBzvdHtGI lvhopsmntikrRcaqOALQbSeKVfHGCuzN",user->nick,ServerName,VERSION);
-       std::string data005 = "WALLCHOPS MODES=13 CHANTYPES=# PREFIX=(ohv)@%+MAP SAFELIST MAXCHANNELS=20 MAXBANS=60 NICKLEN=30 TOPICLEN=307 KICKLEN=307 MAXTARGETS=20 AWAYLEN=307 CHANMODES=ohvb,k,l,psmnti NETWORK=" + std::string(Network);
+       // the neatest way to construct the initial 005 numeric, considering the number of configure constants to go in it...
+       std::stringstream v;
+       v << "MESHED WALLCHOPS MODES=13 CHANTYPES=# PREFIX=(ohv)@%+ MAP SAFELIST MAXCHANNELS=" << MAXCHANS;
+       v << " MAXBANS=60 NICKLEN=" << NICKMAX;
+       v << " TOPICLEN=307 KICKLEN=307 MAXTARGETS=20 AWAYLEN=307 CHANMODES=ohvb,k,l,psmnti NETWORK=";
+       v << std::string(Network);
+       std::string data005 = v.str();
        FOREACH_MOD On005Numeric(data005);
        WriteServ(user->fd,"005 %s %s :are supported by this server",user->nick,data005.c_str());
        ShowMOTD(user);