aboutsummaryrefslogtreecommitdiff
path: root/src/xline.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace irc::string in XLineLookup with irc::insensitive_swo mapGravatar Attila Molnar2016-08-221-2/+2
|
* Introduce Stats::Context, pass it to the OnStats hook and switch all code to itGravatar Attila Molnar2016-02-251-2/+2
|
* Convert WriteNumeric() calls to pass the parameters of the numeric as method ↵Gravatar Attila Molnar2016-02-251-1/+1
| | | | parameters
* Use ERR_YOUREBANNEDCREEP instead of NOTICE when a user is banned.Gravatar Peter Powell2015-01-241-1/+1
| | | | This is specified in RFC 1459 so we should probably use it.
* Add stdalgo::erase() and use it to simplify codeGravatar Attila Molnar2014-11-011-6/+2
|
* Access local user list via new UserManager::GetLocalUsers() and make ↵Gravatar Attila Molnar2014-07-191-5/+8
| | | | local_users private
* Move and rename typedef LocalUserList to UserManager::LocalListGravatar Attila Molnar2014-07-191-5/+5
|
* Remove now needless User::ForceNickChange()Gravatar Attila Molnar2014-07-031-1/+1
| | | | Change call sites to call ChangeNick()
* Change allocation of InspIRCd::BanCache to be physically part of the object ↵Gravatar Attila Molnar2014-06-131-3/+3
| | | | containing it
* Pull in bancache.h from inspircd.hGravatar Attila Molnar2014-06-131-1/+0
|
* Omit the server name internally when building a /STATS reply and prepend it ↵Gravatar Attila Molnar2014-01-251-1/+1
| | | | later
* Convert LocalUserList to an intrusively linked listGravatar Attila Molnar2014-01-241-3/+3
|
* Improve UserManager::QuitUser() and related codeGravatar Attila Molnar2014-01-051-2/+2
| | | | | | - Make operreason optional; NULL means same as quitreason - Remove User::quietquit, it is now handled internally in spanningtree - Send snotice about quitting remote users from spanningtree
* Rename <options:moronbanner> to <options:xlinemessage>.Gravatar Peter Powell2013-08-101-2/+2
| | | | This name is more descriptive of what is actually is used for.
* Change the syntax of FOREACH macros to be less dumb.Gravatar Adam2013-08-041-3/+3
|
* Convert XLine::Displayable to return a std::string.Gravatar Peter Powell2013-05-211-13/+13
|
* Change the signature of User::ForceNickChange() to accept const std::string& ↵Gravatar attilamolnar2013-05-181-1/+1
| | | | instead of const char*
* Replace some C-isms with C++-isms.Gravatar Peter Powell2013-05-151-4/+4
| | | | | | * 'const char*' to 'const std::string&'. * snprintf to std::string concatenation. * Replace duplicated OneOfMatches with InspIRCd::MatchMask.
* Add method for writing server notices.Gravatar Peter Powell2013-05-141-1/+1
| | | | | | | | | This allows us to send a server notice to a user without worrying about whether they are registered or not. If a user receives a server notice and they are not registered then the nickname field will contain an asterisk instead of their nick name.
* Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-1/+1
|
* BanCache: Don't repeat ourselves, one BanCacheManager::AddHit() and one ↵Gravatar attilamolnar2013-04-101-4/+1
| | | | BanCacheHit constructor is enough
* XLine: Provide a default implementation for DisplayExpiry()Gravatar attilamolnar2013-04-091-27/+4
|
* Move member variables from User to LocalUserGravatar attilamolnar2013-04-011-8/+12
| | | | | | | | - idle_lastmsg - dns_done - quitting_sendq - exempt - lastping
* Fix expired xlines being treated as live ones in XLineManager::AddLine()Gravatar attilamolnar2012-12-051-1/+6
| | | | | | | | | This fixes ADDLINEs not being propagated and /gline etc. failing for already existing but expired xlines Special thanks to @JDowny (TinMan) for his detailed report and cooperation that made this fix possible Fixes #306 reported by @TurkDesk Fixes #379 reported by @JDowny
* Add a typedef for LocalUserListGravatar attilamolnar2012-11-291-4/+4
|
* Change empty string assignments to .clear() or remove them entirelyGravatar attilamolnar2012-11-281-1/+1
| | | | Part 2 of ba5c0db795824c3fc1ad48ce332d7bdc440cb77f
* Remove superfluous std::string()sGravatar attilamolnar2012-10-121-1/+1
|
* Remove unnecessary cleanup in XLineManager destructorGravatar attilamolnar2012-08-251-5/+0
|
* Remove unnecessary string copy in XLineManager::InvokeStatsGravatar attilamolnar2012-08-251-4/+2
|
* Remove negative BanCache entries only when the AddLine is successful instead ↵Gravatar attilamolnar2012-07-221-2/+2
| | | | of removing them before checking anything
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+18
|
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Move command-line items to CommandLineConfGravatar danieldg2009-10-211-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11949 e03df62e-2008-0410-955e-edbf42e46eb7
* Split LocalUser and RemoteUserGravatar danieldg2009-10-211-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11940 e03df62e-2008-0410-955e-edbf42e46eb7
* Update documentation and remove unused classes/functionsGravatar danieldg2009-10-211-13/+93
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11938 e03df62e-2008-0410-955e-edbf42e46eb7
* Get rid of a bunch of memory-wasting C-style stringsGravatar danieldg2009-10-031-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11796 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-7/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix iteration of ServerInstance->Users->local_users now that QuitUser can ↵Gravatar danieldg2009-09-161-2/+3
| | | | | | modify the vector git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11732 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove calls to strdup() in core, it is not better than std::stringGravatar danieldg2009-09-021-10/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11623 e03df62e-2008-0410-955e-edbf42e46eb7
* Don't apply bans to E:Lined connections. Should fix bug #896.Gravatar w00t2009-08-011-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11452 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
* In retrospect, not allowing *any* XLines to be set was pretty fucking stupid.Gravatar w00t2009-02-221-1/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11141 e03df62e-2008-0410-955e-edbf42e46eb7
* Don't remove an expired xline on add, simply drop duplicates (1.1 ↵Gravatar w00t2009-02-221-9/+2
| | | | | | behaviour). This can lead to bouncing between servers. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11140 e03df62e-2008-0410-955e-edbf42e46eb7
* Don't allow expired XLines to be added.Gravatar w00t2009-02-221-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11139 e03df62e-2008-0410-955e-edbf42e46eb7
* Nuke trailing spacesGravatar peavey2009-02-141-7/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7
* Note to self, cast time_t to long int for printf... thanks Ankit for ↵Gravatar dz2009-01-281-5/+5
| | | | | | 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-5/+5
| | | | | | 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
* Check line expiry when touching an xline, to prevent huge buildup of stale ↵Gravatar w00t2009-01-271-12/+9
| | | | | | lines chomping CPU. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11007 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
* Move stuff to use ASCII map where required.Gravatar w00t2008-12-071-9/+9
| | | | | | Also move this out of being a member totally, as it breaks (gah) and is already untidy.. to be revisited. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10858 e03df62e-2008-0410-955e-edbf42e46eb7