summaryrefslogtreecommitdiff
path: root/src/modules/m_messageflood.cpp
AgeCommit message (Collapse)Author
2006-12-28Reasonably sized fix - when adding modes in modules, be sure to check the ↵brain
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
2006-12-16Fix setting of * for bans in m_messageflood, this has been broken for quite ↵brain
some time and nobody noticed? :P Spotted on barafranca, tested on chatspike. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6001 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-15Remove global namespacing, makes modules compile FASTAH. Also massive update ↵w00t
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
2006-11-27Add exception lists to OnUserMessage and OnUserNotice, to be used for ↵brain
smarter routing of messages in spanningtree amongst other things git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5817 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-15Annotationsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5254 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-13Fix m_messageflood along same lines as m_joinflood (jamie forgot a patch, i ↵brain
figured this one out for myself) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5225 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-02Because these modes take no parameter when being removed, they need no ↵brain
special code for ModeHandler::RemoveMode() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5111 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-25Remove On005Numeric event from a ton of modules which no longer need it (as ↵brain
CHANMODES= part of 005 is now automatically done) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5024 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-23ModeParser::InsertMode is no longer required -- this is auto-generated by ↵brain
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
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-11CamelCaseRocksSoMuchICamelCasedAllTheMethodsOfClassInspIRCdSoThatItAllLooksNeat.brain
NowSomebodyHasToSpendHoursDocumentingAllOfThisIWonderWhoThatWillEndUpBeing... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4889 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Now two types of log macro, log() and ilog(). log() assumes an InspIRCd ↵brain
object called ServerInstance, ilog() takes an InspIRCd object as first param. TODO: Run a regexp over these, using perl, to translate them into InspIRCd::Log calls and then eliminate the macro :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4879 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11ConfigReader and FileReader now take InspIRCd* to their constructorsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4865 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11None of the modules use an extern InspIRCd* any morebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4863 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-10Last of Server:: methods moved to InspIRCd::. Server:: removed.brain
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
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-10So much stuff changed in this one, i forgot most of it.brain
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
2006-08-10Move InsertMode into ModeParserbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4849 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
2006-08-08WHEEEEE!!!!!brain
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
2006-08-08WriteChannel* functions and ChanExceptSender* functions are now methods of ↵brain
chanrec. They probably should be renamed too eventually. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4788 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-27Change std::pair<bool,std::string> to neater typedef "ModePair"brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4557 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-26Add extra method to mode handler, ModeHandler::ModeSet().brain
Returns a std::pair<bool,string>. if the bool is true, the mode is set, and the second item in the pair is the parameter set on it, if any If the bool is false, the mode is not set, and the parameter given is returned as the second item of the pair To be used in mode bouncing, to build a safe set of bounced modes (dont ask yet) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4549 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16mass tidyup, change A LOT of stuff to const char** which was char** (such as ↵brain
parameters to commands in handlers) which makes the new lineparser work neater with no casts. This also removes tons of casts from other locations (all in all, ive added 2 casts and removed almost a hundred) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4403 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10Inherit just about everything from classbasebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4299 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10Change to templated GetExt()brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4284 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09Add stuff for propogating mode out on +f * banbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4247 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09Same here, tidy up the parameter to show what we actually stored (e.g. ↵brain
1:5fdfds -> 1:5) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4241 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09Alter SetModeParam to take const char* to save on casts, notice a load of ↵brain
modules that arent setting the param or the mode inside the handler git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4231 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09Port to new API (last mode that has akward parameters done, yay!)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4224 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-24delete operator tracking in debug mode (using a macro -- live with it.)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-14Fix reversed parameters in x:y - joinflood was not brokenbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3880 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-06Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE ↵w00t
THEM - we now have no stupid spaces. This was mostly a mass find/replace, so some indentation may be stuffed. Minor issue, though. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11Yet more const ref changesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3658 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-20Propogation of remote kicks (testy test)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3266 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-03Altered format of OnUserMessagebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3047 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-25Change m_redirect, m_joinflood and m_messageflood to put their modes in the ↵om
correct section and to use InsertMode() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2898 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22Or so i thought...brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2841 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22Fixedbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2840 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22Was using OnUserPre* when i wanted to use OnUser*, which meant that remote ↵brain
servers werent picking up the changes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2839 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22Put some stuff back that was NEEDED.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2838 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22Added MakeWildHost to userrec (*!*@dhost)brain
Added ban stuff to messageflood git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2836 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22Fixes to server kick (i hope)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2835 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22Forgot NOTICE and PRIVMSG implements()brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2834 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22And yae, the compiler sayeth to brain, fix thine warning. and thou warning ↵brain
art fixeth. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2833 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22Fixed simple typosbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2832 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22Added facility for servers to send KICK message (ew, i hate this crap)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2830 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22Made '*' ban-specifier workbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2829 e03df62e-2008-0410-955e-edbf42e46eb7