summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-27 20:27:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-27 20:27:55 +0000
commit47e253a51e60ef849deddec849e18cdb952dfbc2 (patch)
tree43964b05e00aa0d16fc4fabe4f8cff3725207fce
parent28c82e83802100a2b7b6dadf5333a199c9fbe663 (diff)
Replaced some 005 constants with their configured values
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@922 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/inspircd.cpp8
1 files changed, 7 insertions, 1 deletions
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);