summaryrefslogtreecommitdiff
path: root/src/modules/m_blockcaps.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Header rearrangement, move inspircd.h to top, remove stdio, stdlib, ↵Gravatar brain2007-05-211-1/+1
| | | | | | | | | 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
* Windows support. Tested and working to compile on freebsd and linux. Next ↵Gravatar w00t2007-05-191-2/+2
| | | | | | step is to make sure it actually works in windows too. ;p. Add Burlex to contributors. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7
* Optimise caps loop making it real neat. Thx Brain.Gravatar peavey2007-03-161-4/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6682 e03df62e-2008-0410-955e-edbf42e46eb7
* Change wording of 404 numeric to reflect that it's minlen or more.Gravatar peavey2007-03-161-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6681 e03df62e-2008-0410-955e-edbf42e46eb7
* Change the numeric text to match the new configuration. Tidyup comments and ↵Gravatar peavey2007-03-151-3/+1
| | | | | | DEBUG. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6680 e03df62e-2008-0410-955e-edbf42e46eb7
* Add support for MAP of chars considered to be CAPS to config for better control.Gravatar peavey2007-03-151-5/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6678 e03df62e-2008-0410-955e-edbf42e46eb7
* Add third parameter to OnUserQuit (quit reason for opers only) - bump api ↵Gravatar brain2007-03-151-0/+1
| | | | | | | | | | | version Add SetOperQuit and GetOperQuit methods to userrec Add OPERQUIT command to protocol - bump protocol version All this is to properly allow hidebans etc to work properly git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6675 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix blockcaps. Who on earth thought that percentage was x*100 / y ???Gravatar brain2007-03-141-6/+6
| | | | | | | | Its (x/y)*100, muppets :p (also, you cant do floating point maths on integers) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6672 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #205 reported by nenolod (modules that erroneously check remote ↵Gravatar brain2007-02-071-1/+1
| | | | | | users to apply privmsg/notice restrictions) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6532 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix to allow for OnRehash to know what user initiated the rehashGravatar brain2007-01-011-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6207 e03df62e-2008-0410-955e-edbf42e46eb7
* Reasonably sized fix - when adding modes in modules, be sure to check the ↵Gravatar brain2006-12-281-1/+2
| | | | | | return value so we dont load two modules with conflicting modes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6137 e03df62e-2008-0410-955e-edbf42e46eb7
* Change to use std::string::iterator rather than making a copy of the pointer ↵Gravatar brain2006-12-261-2/+1
| | | | | | and using .c_str() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6124 e03df62e-2008-0410-955e-edbf42e46eb7
* Just a little tweak so trigger values makes more sense.Gravatar peavey2006-12-261-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6123 e03df62e-2008-0410-955e-edbf42e46eb7
* Add support for config option for percent and minimum string length +P will ↵Gravatar peavey2006-12-261-10/+37
| | | | | | trigger on. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6121 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove global namespacing, makes modules compile FASTAH. Also massive update ↵Gravatar w00t2006-12-151-7/+3
| | | | | | on headers (change to InspIRCd Development Team, extend copyright to 2007). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5995 e03df62e-2008-0410-955e-edbf42e46eb7
* Add extra parameter to OnUserPreNotice and OnUserPrePrivmsg, CUList ↵Gravatar brain2006-11-261-3/+3
| | | | | | | | | &exempt_list, a list of users NOT to write to. By default it just contains the sender, you can add more. This also bumps the module api version by one. added "CUList fixme" to peaveys module just so it builds, as this will be refactored to use the new feature that was just added :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5806 e03df62e-2008-0410-955e-edbf42e46eb7
* Insert massive change here.Gravatar brain2006-10-191-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5504 e03df62e-2008-0410-955e-edbf42e46eb7
* Now with binary versioning goodnessGravatar brain2006-10-011-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5366 e03df62e-2008-0410-955e-edbf42e46eb7
* Comments describing classes, for the url ↵Gravatar brain2006-09-151-1/+2
| | | | | | http://svn.inspircd.org/docs/annotated.html git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5251 e03df62e-2008-0410-955e-edbf42e46eb7
* All modules which implement simplemodes (no parameters, not a list mode) can ↵Gravatar brain2006-09-021-4/+5
| | | | | | now be UNLOADED O_o git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5102 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove On005Numeric event from a ton of modules which no longer need it (as ↵Gravatar brain2006-08-251-6/+1
| | | | | | CHANMODES= part of 005 is now automatically done) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5024 e03df62e-2008-0410-955e-edbf42e46eb7
* ModeParser::InsertMode is no longer required -- this is auto-generated by ↵Gravatar brain2006-08-231-1/+0
| | | | | | the ModeParser based on what modes are registered and wether or not they have certain attributes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5007 e03df62e-2008-0410-955e-edbf42e46eb7
* Just to mess with om's head, remove helperfuncs.h from everywhereGravatar brain2006-08-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7
* CamelCaseRocksSoMuchICamelCasedAllTheMethodsOfClassInspIRCdSoThatItAllLooksNeat.Gravatar brain2006-08-111-1/+1
| | | | | | | NowSomebodyHasToSpendHoursDocumentingAllOfThisIWonderWhoThatWillEndUpBeing... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4889 e03df62e-2008-0410-955e-edbf42e46eb7
* None of the modules use an extern InspIRCd* any moreGravatar brain2006-08-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4863 e03df62e-2008-0410-955e-edbf42e46eb7
* Last of Server:: methods moved to InspIRCd::. Server:: removed.Gravatar brain2006-08-101-2/+2
| | | | | | | | This will need a real good tidyup later, because now everything is in the right place, but its a mess because for now i threw them into place (e.g. space indenting, etc) Next on the todo: Make command handlers have a ServerInstance (gank!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4861 e03df62e-2008-0410-955e-edbf42e46eb7
* Note: FOR THE MOMENT, this is BROKEN. It wont run right until im done.Gravatar brain2006-08-101-3/+3
| | | | | | | | 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
* So much stuff changed in this one, i forgot most of it.Gravatar brain2006-08-101-2/+2
| | | | | | | Oh yeah, main thing is ModeHandler and ModeWatcher classes now take an InspIRCd* to their constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4858 e03df62e-2008-0410-955e-edbf42e46eb7
* Move InsertMode into ModeParserGravatar brain2006-08-101-1/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4849 e03df62e-2008-0410-955e-edbf42e46eb7
* ServerConfig extern moved into class InspIRCdGravatar brain2006-08-091-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4808 e03df62e-2008-0410-955e-edbf42e46eb7
* WHEEEEE!!!!!Gravatar brain2006-08-081-1/+1
| | | | | | | | | All of: Write(), WriteTo(), WriteFrom(), WriteServ() are now methods of userrec. Write_NoFormat(), WriteTo_NoFormat(), WriteFrom_NoFormat(), WriteServ_NoFormat() are now std::string-taking overloaded methods of the functions above All modules updated to use new syntax, my fingers hurt :( git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4798 e03df62e-2008-0410-955e-edbf42e46eb7
* DELETE()'s in destructors *fwap*Gravatar om2006-07-091-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4203 e03df62e-2008-0410-955e-edbf42e46eb7
* Did some renaming so that the methods for modes in chanrec and userrec are ↵Gravatar brain2006-07-081-2/+2
| | | | | | | | | | | identical. bool IsModeSet(const unsigned char c); void SetMode(const unsigned char c, bool value); Fixed m_botmode for new api git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4194 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix typoGravatar brain2006-07-081-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4192 e03df62e-2008-0410-955e-edbf42e46eb7
* Port m_blockcaps to new api, remove OnExtendedMode and OnDisplayList events ↵Gravatar brain2006-07-081-16/+31
| | | | | | entirely git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4191 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove un-needed cast, I have a horrible feeling I'll get stabbed for this. ↵Gravatar om2006-06-231-1/+1
| | | | | | Please let me know before you do... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4052 e03df62e-2008-0410-955e-edbf42e46eb7
* Renamed to chanrec::modesGravatar brain2006-03-121-1/+1
| | | | | | | | Renamed IsCustomModeSet to IsModeSet GetModeParameter will now return the channel limit (as a string) for a request for mode 'l' and the channel key for a request for mode 'k'. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3692 e03df62e-2008-0410-955e-edbf42e46eb7
* Optimisation of optimisation :P ty w00tieGravatar om2006-03-071-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3505 e03df62e-2008-0410-955e-edbf42e46eb7
* OPTIMIZED!!! OPTIMIZED!!!!! :-pGravatar brain2006-03-051-3/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3471 e03df62e-2008-0410-955e-edbf42e46eb7
* Ignore spaces/tabsGravatar om2006-03-051-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3470 e03df62e-2008-0410-955e-edbf42e46eb7
* Change comment (I didn't c/p the +c module...honest)Gravatar om2006-03-051-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3467 e03df62e-2008-0410-955e-edbf42e46eb7
* > != >= && < != <=Gravatar om2006-03-051-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3466 e03df62e-2008-0410-955e-edbf42e46eb7
* Add block caps module, I'm kinda between the extremes of 'Brain' and ↵Gravatar om2006-03-051-0/+121
'normal' here. Aka it compiles but I have nfi if it works :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3465 e03df62e-2008-0410-955e-edbf42e46eb7