From e5cd13921593cba8617fddebbcbde029f54dfa65 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 22 Feb 2006 20:57:29 +0000 Subject: SAFELIST 005 token is now part of m_safelist not the core 005 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3292 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 2 +- src/modules/m_safelist.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index b806776c2..2b57a2292 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -386,7 +386,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 WALLVOICES MODES=" << MAXMODES << " CHANTYPES=# PREFIX=(ohv)@%+ MAP SAFELIST MAXCHANNELS=" << MAXCHANS << " MAXBANS=60 VBANLIST NICKLEN=" << NICKMAX-1; + v << "WALLCHOPS WALLVOICES MODES=" << MAXMODES << " CHANTYPES=# PREFIX=(ohv)@%+ MAP MAXCHANNELS=" << MAXCHANS << " MAXBANS=60 VBANLIST NICKLEN=" << NICKMAX-1; v << " CASEMAPPING=rfc1459 STATUSMSG=@%+ CHARSET=ascii TOPICLEN=" << MAXTOPIC << " KICKLEN=" << MAXKICK << " MAXTARGETS=" << Config->MaxTargets << " AWAYLEN="; v << MAXAWAY << " CHANMODES=b,k,l,psmnti FNC NETWORK=" << Config->Network << " MAXPARA=32"; Config->data005 = v.str(); diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp index 73e7d34f0..afa77c131 100644 --- a/src/modules/m_safelist.cpp +++ b/src/modules/m_safelist.cpp @@ -62,7 +62,7 @@ class ModuleSafeList : public Module void Implements(char* List) { - List[I_OnPreCommand] = List[I_OnBackgroundTimer] = List[I_OnCleanup] = List[I_OnUserQuit] = 1; + List[I_OnPreCommand] = List[I_OnBackgroundTimer] = List[I_OnCleanup] = List[I_OnUserQuit] = List[I_On005Numeric] = 1; } /* @@ -224,6 +224,11 @@ class ModuleSafeList : public Module } } + virtual void On005Numeric(std::string &output) + { + output.append(" SAFELIST"); + } + virtual void OnUserQuit(userrec* user, std::string message) { this->OnCleanup(TYPE_USER,user); -- cgit v1.2.3