From 47e253a51e60ef849deddec849e18cdb952dfbc2 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 27 Mar 2005 20:27:55 +0000 Subject: Replaced some 005 constants with their configured values git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@922 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 5e1c874f2..9d3addf1b 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -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); -- cgit v1.2.3