summaryrefslogtreecommitdiff
path: root/src/modules/m_silence_ext.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate some string copies, tidy some code, and reverse some short-circuit ↵Gravatar brain2007-02-181-10/+2
| | | | | | | | | checks (Expensive(x) && Cheap(y)) -> (Cheap(y) && Expensive(x)) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6591 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #205 reported by nenolod (modules that erroneously check remote ↵Gravatar brain2007-02-071-0/+3
| | | | | | users to apply privmsg/notice restrictions) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6532 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove global namespacing, makes modules compile FASTAH. Also massive update ↵Gravatar w00t2006-12-151-8/+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
* Remove an assignment from definition (damn java thinking)Gravatar peavey2006-12-031-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5837 e03df62e-2008-0410-955e-edbf42e46eb7
* TidyupGravatar brain2006-11-271-29/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5821 e03df62e-2008-0410-955e-edbf42e46eb7
* BuildExemptList is becoming pretty ugly. grr.Gravatar brain2006-11-271-1/+32
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5819 e03df62e-2008-0410-955e-edbf42e46eb7
* Update the comment for flag 't'Gravatar brain2006-11-261-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5812 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup, avoid ternary if() on every iteration of a loop (bad brain bad)Gravatar brain2006-11-261-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5811 e03df62e-2008-0410-955e-edbf42e46eb7
* SILENCE_CNOTICE, flag 't'. Needs testing, peavey should probably review to ↵Gravatar brain2006-11-261-9/+15
| | | | | | check it fits in with what he was doing :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5810 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix to work with channel notices.Gravatar brain2006-11-261-3/+9
| | | | | | | | SILENCE_PRIVATE silences private PRIVMSG, SILENCE_NOTICE silences private NOTICE, and SILENCE_CHANNEL silences channel PRIVMSG *and* channel NOTICE. This makes sense to me... :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5809 e03df62e-2008-0410-955e-edbf42e46eb7
* now using OnUserPreMessage exempt_list instead of OnPreCommand dup code for ↵Gravatar peavey2006-11-261-151/+37
| | | | | | blocking of channel messages. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5808 e03df62e-2008-0410-955e-edbf42e46eb7
* Add extra parameter to OnUserPreNotice and OnUserPrePrivmsg, CUList ↵Gravatar brain2006-11-261-3/+6
| | | | | | | | | &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
* 005 tokens: "ESILENCE SILENCE=999"Gravatar brain2006-11-261-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5805 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidy up space indentsGravatar brain2006-11-261-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5802 e03df62e-2008-0410-955e-edbf42e46eb7
* fix a few confusing returnsGravatar peavey2006-11-261-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5801 e03df62e-2008-0410-955e-edbf42e46eb7
* Improved drop-in replacement for cmd /SILENCE. This first draft features ↵Gravatar peavey2006-11-261-0/+494
server side blocking of private messages, channel messages, notices, invites based on the silence hostmask. Also you can make excludes to your SILENCE rules. See source for examples. Flames, comments, edits are welcomed. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5800 e03df62e-2008-0410-955e-edbf42e46eb7