mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Values were -1, couldnt find an explanation for that. So applied
submitted patch from bug 114 (thanks to DarkStorm) and removed additional -1's.
This commit is contained in:
parent
d73be0b396
commit
7ca5bfa8a7
@ -75,9 +75,9 @@ void InspIRCd::BuildISupport()
|
|||||||
{
|
{
|
||||||
// the neatest way to construct the initial 005 numeric, considering the number of configure constants to go in it...
|
// the neatest way to construct the initial 005 numeric, considering the number of configure constants to go in it...
|
||||||
std::stringstream v;
|
std::stringstream v;
|
||||||
v << "WALLCHOPS WALLVOICES MODES=" << Config->Limits.MaxModes - 1 << " CHANTYPES=# PREFIX=" << this->Modes->BuildPrefixes() << " MAP MAXCHANNELS=" << Config->MaxChans << " MAXBANS=60 VBANLIST NICKLEN=" << Config->Limits.NickMax - 1;
|
v << "WALLCHOPS WALLVOICES MODES=" << Config->Limits.MaxModes << " CHANTYPES=# PREFIX=" << this->Modes->BuildPrefixes() << " MAP MAXCHANNELS=" << Config->MaxChans << " MAXBANS=60 VBANLIST NICKLEN=" << Config->Limits.NickMax;
|
||||||
v << " CASEMAPPING=rfc1459 STATUSMSG=" << Modes->BuildPrefixes(false) << " CHARSET=ascii TOPICLEN=" << Config->Limits.MaxTopic - 1 << " KICKLEN=" << Config->Limits.MaxKick - 1 << " MAXTARGETS=" << Config->MaxTargets - 1;
|
v << " CASEMAPPING=rfc1459 STATUSMSG=" << Modes->BuildPrefixes(false) << " CHARSET=ascii TOPICLEN=" << Config->Limits.MaxTopic << " KICKLEN=" << Config->Limits.MaxKick << " MAXTARGETS=" << Config->MaxTargets;
|
||||||
v << " AWAYLEN=" << Config->Limits.MaxAway - 1 << " CHANMODES=" << this->Modes->GiveModeList(MASK_CHANNEL) << " FNC NETWORK=" << Config->Network << " MAXPARA=32 ELIST=MU";
|
v << " AWAYLEN=" << Config->Limits.MaxAway << " CHANMODES=" << this->Modes->GiveModeList(MASK_CHANNEL) << " FNC NETWORK=" << Config->Network << " MAXPARA=32 ELIST=MU";
|
||||||
Config->data005 = v.str();
|
Config->data005 = v.str();
|
||||||
FOREACH_MOD(I_On005Numeric,On005Numeric(Config->data005));
|
FOREACH_MOD(I_On005Numeric,On005Numeric(Config->data005));
|
||||||
Config->Update005();
|
Config->Update005();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user