summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_filter_pcre.cpp
AgeCommit message (Collapse)Author
2008-02-22Convert remaining InspIRCd::Log() calls to new logging systemaquanight
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9001 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-12-Wshadow fixes for some modules in extra/aquanight
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8907 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-20Update m_filter* to 1.2 API (it was still using Implements()), also ↵aquanight
implement <exemptfromfilter channel="#blah"> to exclude channels from filtering. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8742 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10Header update: 2007 -> 2008w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04Convert all to new Attach() system. The Implements() method needs removing ↵brain
from all modules as it is dead weight. WARNING: there are segfaults here! HERE BE DRAGONS, i am not finished! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8510 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23Pedantic safebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8314 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15In the grand tradition of huge fucking commits:w00t
- chanrec -> Channel - userrec -> User Enjoy. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8204 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵peavey
auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16Add flags to /STATS s output, and nuke some ^Mpeavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7453 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-17Morebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7356 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-14Win compile fixesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7311 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-14Windows build stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7309 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05Sexeger!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7241 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28No flags now means all flags when in the config, so that filters defined in ↵brain
older configs are forwards compatible git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7182 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28Make the flags workbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7180 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28Next bit of filter flags systembrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7179 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28Stuff for flags as requested by djGrr. We aren't going all-out rediculous ↵brain
amount of flags on this, we're sticking with the 5 or 6 easy to remember and lumping oper-immunity into the flags (see forums) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7178 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28A flags section for filters. Do not use yet.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7177 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21Header rearrangement, move inspircd.h to top, remove stdio, stdlib, ↵brain
stdblahblah that we dont even use, remove redeclared <string>, <map>, <vector>. This (1) fixes the irc::string::move warnings on vc8 (2) speeds up compile a lot git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7098 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-14Working in m_filter_pcre.brain
Thanks DarkPrince (PingBad) for the idea we messed with - when a match is successful move that match to the head of the list (O(1) operation) The original suggestion was to sort, this would be far too expensive git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6794 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-14Add move-match-to-head-of-queue stuff to pcre filterbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6793 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Add eval() and exec() macros, that evaluate perl and execute commands at ↵brain
configure time, rather than delaying them with backticks till compile time. This picks up any errors sooner. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6311 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-13Extra stuff to improve buildsystem, calculate lib and include dirs at ↵brain
configure time rather than at build time. This means that we can also throw errors at configure time if we cant find the libraries, rather than erroring at buildtime like we used to. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6306 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-01Fix to allow for OnRehash to know what user initiated the rehashbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6207 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-15Still more massive commit fun. Headers in include/ still to be done, else ↵w00t
that's it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5997 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-10Make /stats s more detailed, fix a grammar errorbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5676 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-10Whoops, make /stats s workbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5675 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-10Add /stats sbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5674 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-10Whoops, properly handle rehash now that new filters might be added by /FILTERbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5672 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-10Implement on-burst synching of filtersbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5669 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-10Oops, forgot command source, these wouldnt be able to be unloaded properlybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5668 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-10Implement the /filter command. Note that this is currently untested, and ↵brain
propogation of filters between servers on burst isnt implemented yet (This is next on my todo) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5667 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-10Add gline type, and <filter:duration> value to say how long to ban for.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5666 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-10Inherit m_filter.cpp and m_filter_pcre.cpp from a base set of classes, so ↵brain
that changes for /filter command and gline actions etc only need to be made in one place (the base classes header) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5665 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-27remove <filter file> - This is no longer neccessary as we've had includes ↵brain
for quite a while now. It's still required for m_helpop, because the helpop.conf has tags which clash with the main config's tags (e.g. <server>, <oper>) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5548 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-19Insert massive change here.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5504 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-01Now with binary versioning goodnessbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5366 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-29Made m_filter_pcre free the compiled regular expressions on rehash (no more ↵special
memory leak) and fixed my previous fix git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5357 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-29Fixed the pcre include path in m_filter_pcre - on every system I tested, ↵special
--cflags only gives -I, and on some the include file is not where it was expected before (thanks jamie) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5356 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-15Annotationsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5254 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Just to mess with om's head, remove helperfuncs.h from everywherebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Change to using Instance->Log (InspIRCd::Log) rather than log() macrobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Use pcre-config to detect pcrebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4869 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Updates to new API and small cleanupom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4867 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-10Note: FOR THE MOMENT, this is BROKEN. It wont run right until im done.brain
Changed Parameter for modules from Server* to InspIRCd*. TODO: Move remaining Server* Modules into InspIRCd* and remove class Server. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4859 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-10Removal of Server::Log -- not much ever used it anyway with the ability to ↵brain
use log(). log() macro still exists, and calls InspIRCd::Log() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4845 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-10Fix to new APIom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4840 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-09userrec and chanrec now have their own independent pointer back to their ↵brain
'creator' InspIRCd* object, extern now longer required in channels.cpp or users.cpp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4820 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-09ServerConfig extern moved into class InspIRCdbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4808 e03df62e-2008-0410-955e-edbf42e46eb7