summaryrefslogtreecommitdiff
path: root/src/modules/m_shun.cpp
Commit message (Collapse)AuthorAgeFilesLines
* m_shun Fix out of bounds vector access leading to crashes when hiding part ↵Gravatar attilamolnar2012-06-291-2/+2
| | | | | | reason for a shunned user (cherry picked from commit 14b7e4c1ab7fd7d9cf71344bb08b211a0aa1ca15)
* Module description updatesGravatar Robby-2012-05-301-1/+1
|
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-201-8/+17
|
* Make m_shun work on aliasesGravatar Robby-2012-04-181-0/+6
|
* shun: stats functionality is implemented, this may be removedGravatar Robby-2012-04-171-1/+0
|
* shun: Correct stats character in the notice tooGravatar Robby-2012-04-171-1/+1
|
* /STATS: Update the helpop stats-characters aswell as give the ziplink and ↵Gravatar Robby-2012-04-171-1/+1
| | | | shun modules their own stats-characters so they actually work and don't collide with others (shun was for example overriding svsholds output)
* This addresses the memory leak issues reported in issue #38.Gravatar Shawn Smith2012-04-121-0/+1
|
* OnRehash changes: split to multiple hooks to clarify use and prevent ↵Gravatar danieldg2009-05-241-2/+2
| | | | | | explosion of rehashes on a /REHASH * git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11388 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow E:Lines to exempt targets from SHUN and RLINE. Fixes bug #852 reported ↵Gravatar w00t2009-05-031-0/+4
| | | | | | by Taros. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11355 e03df62e-2008-0410-955e-edbf42e46eb7
* m_shun: Allow nick targets for removal as well, in the same format as additionGravatar special2009-04-061-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11290 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix shun not applying if you add an IP mask for a user that has a host which ↵Gravatar peavey2009-04-061-1/+1
| | | | | | resolves. Spotted by Ankit. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11289 e03df62e-2008-0410-955e-edbf42e46eb7
* Add support for nick targets like other xlines. Patch by Ankit.Gravatar peavey2009-04-061-6/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11288 e03df62e-2008-0410-955e-edbf42e46eb7
* Weed out a few leftover server instances from before modules had ↵Gravatar peavey2009-04-061-4/+1
| | | | | | ServerInstance. Patch by Ankit. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11287 e03df62e-2008-0410-955e-edbf42e46eb7
* Don't use metadata in m_shun, this fixes problems with expiry reported by ↵Gravatar w00t2009-03-271-5/+2
| | | | | | Taros in bug #772. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11266 e03df62e-2008-0410-955e-edbf42e46eb7
* Instead of emptying parameters on shunned PART, only empty the reason. Fixes ↵Gravatar w00t2009-03-271-1/+1
| | | | | | bug #810, reported by Casey and others. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11265 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix m_shun silently blocking allowed commands on shunned users, fixes bug ↵Gravatar dz2009-03-151-1/+2
| | | | | | #771 reported by Taros. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11225 e03df62e-2008-0410-955e-edbf42e46eb7
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-151-1/+1
| | | | | | | | | with the following command, only .Makefile.inc got some indent fixups by hand. 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
* Fix crash on /SHUN with exactly 2 parametersGravatar danieldg2009-02-191-5/+18
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11131 e03df62e-2008-0410-955e-edbf42e46eb7
* Apply patch for bug #704 from Darom, shun:affectopers option -- Thanks!Gravatar brain2009-02-081-0/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11057 e03df62e-2008-0410-955e-edbf42e46eb7
* Note to self, cast time_t to long int for printf... thanks Ankit for ↵Gravatar dz2009-01-281-1/+1
| | | | | | pointing this out. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11012 e03df62e-2008-0410-955e-edbf42e46eb7
* Make xline expiry messages a bit clearer that the xline may have expired a ↵Gravatar dz2009-01-281-1/+1
| | | | | | while ago, and give the correct time since they were set instead of the duration. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11011 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix bug #680, reported by Namegduf: 1.2 SHUN does not respect the notifyuser ↵Gravatar w00t2009-01-181-1/+2
| | | | | | option, and always notifies the user that their command was blocked. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10968 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix a small typo in shun notice, reported by Ankit. Closes bug #666. (!)Gravatar w00t2009-01-181-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10967 e03df62e-2008-0410-955e-edbf42e46eb7
* Update copyrights for 2009.Gravatar w00t2009-01-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix unnecessary use of map, set is better suited.Gravatar w00t2008-12-271-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10921 e03df62e-2008-0410-955e-edbf42e46eb7
* Stupid linebreak.Gravatar w00t2008-12-151-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10893 e03df62e-2008-0410-955e-edbf42e46eb7
* Add missing copyright header.Gravatar w00t2008-12-151-1/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10892 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix naming convention to be consistant. (cmd_ -> Command)Gravatar w00t2008-12-151-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10891 e03df62e-2008-0410-955e-edbf42e46eb7
* Add reasons to other modules that implement XLines also.Gravatar w00t2008-10-281-3/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10741 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix a number of commands to have max_params field. This means in practice, ↵Gravatar w00t2008-10-251-1/+2
| | | | | | that colons on gline reasons (etc) are no longer mandatory, provided the command tells the core how many parameters at max it has. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10718 e03df62e-2008-0410-955e-edbf42e46eb7
* Add <shun:notifyuser>, default on, which notifies the user that their ↵Gravatar w00t2008-08-271-0/+7
| | | | | | command was blocked git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10317 e03df62e-2008-0410-955e-edbf42e46eb7
* Add and document <shun:enabledcommands>, allowing customisation of ↵Gravatar w00t2008-08-271-7/+33
| | | | | | specifically which commands shunned users may execute. NOTE: PART/QUIT (if allowed) will always suppress the PART/QUIT message. This needs some testing. :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10316 e03df62e-2008-0410-955e-edbf42e46eb7
* Change module versions to use a string instead of fixed digits, and use ↵Gravatar w00t2008-08-251-1/+1
| | | | | | propset ID to auto-set versions, so we don't have (essentially unused) module versions. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10291 e03df62e-2008-0410-955e-edbf42e46eb7
* Match conversion stuff.Gravatar w00t2008-08-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10216 e03df62e-2008-0410-955e-edbf42e46eb7
* Delete all XLines when destroying moduleGravatar w00t2008-07-121-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9976 e03df62e-2008-0410-955e-edbf42e46eb7
* IPC now works for receiving one-byte commands in the same manner as the ↵Gravatar brain2008-06-151-7/+0
| | | | | | mailslot. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9911 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix m_shun as per bug #560 reported by Casey, thanksGravatar brain2008-06-141-9/+24
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9905 e03df62e-2008-0410-955e-edbf42e46eb7
* fixed some indentation and spacing in modulesGravatar pippijn2008-06-111-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9888 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow changing of command string and parameter vector within OnPreCommand, ↵Gravatar brain2008-06-061-1/+1
| | | | | | | | | allowing for m_abbreviation and other fancy stuff. Add basic skeleton module for it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9840 e03df62e-2008-0410-955e-edbf42e46eb7
* More doneGravatar brain2008-05-191-6/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9759 e03df62e-2008-0410-955e-edbf42e46eb7
* ConversionsGravatar aquanight2008-05-051-11/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9628 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix a bug with /SHUN deletion (it didn't work)Gravatar w00t2008-04-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9433 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix compile errorGravatar w00t2008-04-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9420 e03df62e-2008-0410-955e-edbf42e46eb7
* REG_ALL check is not required, since OnUserConnect is triggered after ↵Gravatar w00t2008-04-081-3/+3
| | | | | | NICK/USER recieved, but we don't want to bother trying to SHUN remote users too, so check IS_LOCAL in the connection event git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9419 e03df62e-2008-0410-955e-edbf42e46eb7
* SHUN: check SHUN on connect, extend user with shunned metadata if they ↵Gravatar w00t2008-04-081-15/+17
| | | | | | match, and disallow any commands if metadata exists instead of constantly rechecking bans per-command. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9418 e03df62e-2008-0410-955e-edbf42e46eb7
* SHUN works (locally at least)Gravatar w00t2008-04-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9412 e03df62e-2008-0410-955e-edbf42e46eb7
* Hook events properly.Gravatar w00t2008-04-071-5/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9411 e03df62e-2008-0410-955e-edbf42e46eb7
* Add a factory to produce shuns, don't autoapply to userlist, etc.Gravatar w00t2008-04-071-4/+30
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9410 e03df62e-2008-0410-955e-edbf42e46eb7
* Use SHUN, not S, try match on std::string for removalGravatar w00t2008-04-071-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9408 e03df62e-2008-0410-955e-edbf42e46eb7