summaryrefslogtreecommitdiff
path: root/src/modules/m_messageflood.cpp
Commit message (Expand)AuthorAgeFilesLines
* Fix empty FMODE being sent if SendMode denies mode changes•••git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@12324 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-01-281-3/+1
* Overloading SetMode seems to cause the compiler to interpret "" as a bool and...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11335 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-04-291-3/+3
* Use loopCall to protect OnUserKick rather than the triggerevents hack•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11321 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-04-201-1/+1
* Fix SetModeParam to use std::string and handle edge cases.•••Previously, changing the vaule of a mode could require 3 calls to SetMode and SetModeParam. This also fixes memory leaks caused by the strdup() not always being paired with a free(). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11307 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-04-171-5/+3
* Update all wiki links to point to the new wiki. This was done automatically w...•••for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-03-151-1/+1
* Update copyrights for 2009.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-021-1/+1
* Disallow any messageflood parameter where x < 2 in +f x:y, prevents moronic b...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10869 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-12-071-1/+1
* Fix crashes in m_joinflood and m_nickflood, found by Schitz0, introduced by c...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10819 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-11-241-1/+0
* Second attempt at time() -> SI->Time(), now problems with the original were f...•••Thanks Namegduf! (Please test, all, valdebug etc, report odd behaviour/warnings!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10783 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-11-011-7/+9
* Revert earlier time() -> SI->Time() diff for now, this causes problems with d...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10695 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-231-9/+7
* Patch from Namegduf converting all instances (where possible) of time() -> Se...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-231-7/+9
* Fix messageflood not working (bug #615). Big thanks to dz.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10636 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-101-1/+1
* Change module versions to use a string instead of fixed digits, and use props...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10291 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-251-1/+1
* Now builds ok on gcc 4.3, not tested fully. Also UGLY, oh we hate you GCC, wh...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9894 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-06-121-2/+2
* fixed some indentation and spacing in modules•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9888 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar pippijn2008-06-111-10/+10
* Convert channel::name to std::string, this was a beastie!•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9770 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-05-191-2/+2
* More done•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9759 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-05-191-2/+2
* Conversions•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9628 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar aquanight2008-05-051-5/+5
* Fix bug #509 reported by Casey: bans were not applied on non-opped users (1.2...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9375 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-04-061-1/+1
* Fix a silly bug we never thought was a bug, in m_messageflood - the message t...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9372 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-04-061-1/+4
* Change the function name because gcc is dumb :/•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9305 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-041-1/+1
* Whoops, fix typo•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9304 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-041-1/+1
* A convenience function for ProtocolInterface::SendMode that just takes a stri...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9303 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-041-4/+1
* Make all our modules use the new stuff rather than the send_ events•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9301 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-041-10/+3
* Finally change all the Version() objects•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9185 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-03-241-1/+1
* Wheeee for HUGE commits. Convert all numerics to WriteNumeric so that OnNumer...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9175 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-03-221-2/+2
* Phew. Fix a bunch of method sigs to stop warnings.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8966 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-02-181-1/+1
* Last of the -Wshadow fixes.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8894 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-02-111-4/+4
* Remove a redundant method here, call the mode manager directly•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8732 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-171-1/+1
* Header update: 2007 -> 2008•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-101-1/+1
* Remove Implements() method from every module. booya.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8536 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-041-4/+0
* Honking huge commit. Removal of DELETE() template that never worked right anyway•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8527 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-041-3/+3
* Convert all to new Attach() system. The Implements() method needs removing fr...•••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 Gravatar brain2007-11-041-0/+2
* More•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8322 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-10-231-1/+1
* In the grand tradition of huge fucking commits:••• - chanrec -> Channel - userrec -> User Enjoy. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8204 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-10-151-16/+16
* Remove unnecessary header traffic•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7885 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-08-271-3/+0
* Changed m_messageflood to use PreMessage and PreNotice, because it may kick t...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7719 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar special2007-08-151-11/+16
* Fixed m_messageflood to free the channel if it kicks the last user. This woul...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7473 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar special2007-07-181-1/+2
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-1/+304
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are au...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-304/+1
* Removed superfluous semicolons•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7423 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar pippijn2007-07-031-1/+1
* Fix for bug #332. Correctly invalidate old mode before updating it.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7400 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-06-221-8/+22
* More conversions.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7360 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-06-171-25/+1
* A ton more clear() and empty() stuff thats been lingering on the long term to...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7264 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-06-091-2/+2
* Header rearrangement, move inspircd.h to top, remove stdio, stdlib, stdblahbl...•••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 Gravatar brain2007-05-211-3/+1
* SPACE INDENTING ACTION RANGERS -- ATTACK!•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7048 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-191-6/+6
* Windows support. Tested and working to compile on freebsd and linux. Next ste...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-05-191-2/+2
* Now really add +f to <options:chanopsexempt>. Previous add was m_chanfilter (...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7021 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-05-141-30/+32
* Improve +f kick message:•••[17:25] --- You have been kicked from #test by test2.chatspike.net (Channel flood triggered (limit is 4 lines in 20 secs)) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6564 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-101-1/+3
* Reasonably sized fix - when adding modes in modules, be sure to check the ret...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6137 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-281-1/+2