summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Check maximum length of ban list for local users, not remoteGravatar Daniel De Graaf2010-04-161-1/+1
|
* Fix empty FMODE being sent if SendMode denies mode changesGravatar danieldg2010-01-281-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@12324 e03df62e-2008-0410-955e-edbf42e46eb7
* Make parameter unsigned so that passing -1 for "none" actually works, rather ↵Gravatar danieldg2010-01-161-1/+1
| | | | | | than crashing git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@12266 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow maxtargets to be bypassed in LoopCall for JOINGravatar danieldg2010-01-141-24/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@12254 e03df62e-2008-0410-955e-edbf42e46eb7
* Other half of r11694, that I forgot to commit the first timeGravatar special2009-09-131-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@11695 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix invalid iterator in select socketengineGravatar danieldg2009-09-091-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@11688 e03df62e-2008-0410-955e-edbf42e46eb7
* Of course, in adding yet more header madness to this for VS2010, I forgot to ↵Gravatar w00t2009-08-261-1/+2
| | | | | | keep the old hash_map include for windows. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11539 e03df62e-2008-0410-955e-edbf42e46eb7
* win: Last part of support required for VS2010:Gravatar w00t2009-08-155-40/+48
| | | | | | | | | | | | | | | | NEEDS COMPILE TESTING ON: gcc3 (if possible), gcc4, vs2008. - Check for vs2010 in hash_map.h - use unordered_map if it exists - change all map creations to: #if defined(WINDOWS) && !defined(HASHMAP_DEPRECATED) // old windows crap #else #if HASHMAP_DEPRECATED // tr1/gcc crap #endif #endif git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11524 e03df62e-2008-0410-955e-edbf42e46eb7
* Merge patch from dKingston for missing TOPIC numeric, also replace the ↵Gravatar brain2009-08-131-0/+1
| | | | | | literal 331 with an RPL_* enum value, thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11510 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes for config readerGravatar danieldg2009-08-123-397/+205
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11504 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix module prioritization when a module asks to be after spanningtree, which ↵Gravatar danieldg2009-08-111-0/+5
| | | | | | asks to be last git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11502 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix thread join not working for subclasses of Thread because of C++ ↵Gravatar danieldg2009-08-101-5/+7
| | | | | | destructor ordering git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11500 e03df62e-2008-0410-955e-edbf42e46eb7
* First space stream seperator test.Gravatar w00t2009-08-061-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11498 e03df62e-2008-0410-955e-edbf42e46eb7
* Add commasepstream test case.Gravatar w00t2009-08-061-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11497 e03df62e-2008-0410-955e-edbf42e46eb7
* Purely a documentation fix: PRIO_AFTER doesn't exist any more, it's ↵Gravatar w00t2009-08-031-5/+5
| | | | | | PRIORITY_AFTER. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11469 e03df62e-2008-0410-955e-edbf42e46eb7
* Various rehash fixes that it seems were introduced by untested code.Gravatar w00t2009-08-011-4/+0
| | | | | | | | | - Remove unused ReportConfigError member - Don't report successful load (and spam modules that failed to load) if there is a config error - Restore server name before attempting to send error string to client(s) otherwise most of them won't recieve the notifications. Fixes bug #891. Still to come: report errors loudly on startup regardless of debug mode. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11450 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix error reporting on rehashGravatar danieldg2009-07-011-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11425 e03df62e-2008-0410-955e-edbf42e46eb7
* Make rehash generate a new ServerInstance->Config objectGravatar danieldg2009-07-013-79/+40
| | | | | | | This makes it possible to cancel a pending rehash, and fixes possible threading issues with rehash and other events. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11424 e03df62e-2008-0410-955e-edbf42e46eb7
* Move list of open ports out of Config objectGravatar danieldg2009-07-012-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11423 e03df62e-2008-0410-955e-edbf42e46eb7
* Roll back mysterious DNS change from 2007 which broke multiple-answerGravatar w00t2009-06-302-7/+3
| | | | | | | DNS requests (CNAME, A). It looks like this was to be related to bitmask dnsbl support, but it would never have worked anyway (resultnum was always 0..). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11419 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix incorrect attempted inline of irc::sockets::sa_sizeGravatar danieldg2009-06-161-4/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11415 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix sockaddr length argument, BSD will complain if it doesn't exactly match ↵Gravatar danieldg2009-06-161-0/+6
| | | | | | the expected size git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11414 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove the ServerConfig::DirValid check that breaks symlinksGravatar danieldg2009-05-251-6/+0
| | | | | | | | This was included as a security check to prevent symlink attacks, but this is no longer useful; anyone who can exploit the attack now can just modify the ircd itself. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11390 e03df62e-2008-0410-955e-edbf42e46eb7
* OnRehash changes: split to multiple hooks to clarify use and prevent ↵Gravatar danieldg2009-05-242-33/+49
| | | | | | explosion of rehashes on a /REHASH * git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11388 e03df62e-2008-0410-955e-edbf42e46eb7
* Make User::ServerInstance public so that FakeUser can access it. There is no ↵Gravatar danieldg2009-05-131-6/+6
| | | | | | reason to make this private, really git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11382 e03df62e-2008-0410-955e-edbf42e46eb7
* Hide server sources if HideWhoisServer is set, noticed by BrainGravatar danieldg2009-05-131-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11381 e03df62e-2008-0410-955e-edbf42e46eb7
* Use Utils->ServerUser instead of ServerInstance->FakeClient in m_spanningtreeGravatar danieldg2009-05-131-2/+3
| | | | | | | This makes it possible to determine which server initiated a mode change, instead of having only a flag saying that some server did. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11379 e03df62e-2008-0410-955e-edbf42e46eb7
* Make the previous patches actually workGravatar danieldg2009-05-131-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11378 e03df62e-2008-0410-955e-edbf42e46eb7
* Replace loopCall detection in OnUserKick with a check for the m_spanningtree ↵Gravatar danieldg2009-05-132-2/+7
| | | | | | fake user git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11377 e03df62e-2008-0410-955e-edbf42e46eb7
* Create subclass of User for FakeClient, to allow for use as command sourceGravatar danieldg2009-05-133-3/+35
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11375 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove FindDescriptor wrapper for GetRef, it doesn't do anything useful and ↵Gravatar w00t2009-05-062-12/+1
| | | | | | in fact is a bit harmful in some ways as we've seen.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11364 e03df62e-2008-0410-955e-edbf42e46eb7
* Canonicalize bind addresses when creating listen socketsGravatar danieldg2009-05-041-18/+14
| | | | | | | | This fixes /stats p output for SSL ports not working if a non-canonical address is used in the configuration (IPv6 with :: or mixed hexadecimal case). This also cleans up some now-useless sockaddr[2] allocations. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11361 e03df62e-2008-0410-955e-edbf42e46eb7
* Add IP address conversion utility functions, irc::sockets::aptosa and ↵Gravatar danieldg2009-04-291-0/+15
| | | | | | irc::sockets::satoap git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11336 e03df62e-2008-0410-955e-edbf42e46eb7
* Overloading SetMode seems to cause the compiler to interpret "" as a bool ↵Gravatar danieldg2009-04-291-1/+1
| | | | | | and not a string. Fixes bug #849 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11335 e03df62e-2008-0410-955e-edbf42e46eb7
* rollback r11326, we're going to make vc9 the officially supported windows ↵Gravatar peavey2009-04-232-2/+2
| | | | | | build methods since the few of us doing win dev can't keep up maintaining the others. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11327 e03df62e-2008-0410-955e-edbf42e46eb7
* Heres the beef so farGravatar brain2009-04-232-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11326 e03df62e-2008-0410-955e-edbf42e46eb7
* Actually use irc::modestacker correctlyGravatar danieldg2009-04-201-5/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11322 e03df62e-2008-0410-955e-edbf42e46eb7
* Use loopCall to protect OnUserKick rather than the triggerevents hackGravatar danieldg2009-04-201-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11321 e03df62e-2008-0410-955e-edbf42e46eb7
* Add global-routing snomask functionsGravatar danieldg2009-04-181-2/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11314 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix CullList to not use O(n^2) version of vector clearGravatar danieldg2009-04-171-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11312 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix memory leak on rehash: opertype used char* instead of std::stringGravatar danieldg2009-04-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11309 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix SetModeParam to use std::string and handle edge cases.Gravatar danieldg2009-04-171-5/+5
| | | | | | | 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
* Remove the unused RESOLVER_NOTREADY define and fix the spelling of ↵Gravatar psychon2009-04-051-4/+3
| | | | | | RESLOVER_FORCEUNLOAD git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11286 e03df62e-2008-0410-955e-edbf42e46eb7
* Reapply r11241: flush and close log filehandles properly when the log is closed.Gravatar dz2009-04-041-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11285 e03df62e-2008-0410-955e-edbf42e46eb7
* Correct bind address of ident requests on multihomed IPv6-capable servers.Gravatar danieldg2009-04-011-0/+6
| | | | | | Fixes bug #815, reported by Szymek. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11274 e03df62e-2008-0410-955e-edbf42e46eb7
* start of fix for bug #805Gravatar brain2009-03-252-13/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11260 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix headers for GCC 4.4: sprintf requires #include <cstdio>Gravatar danieldg2009-03-251-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11259 e03df62e-2008-0410-955e-edbf42e46eb7
* ConfigReaderThread updates: add done flag, remove main-thread-only mutexGravatar danieldg2009-03-232-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11256 e03df62e-2008-0410-955e-edbf42e46eb7
* ThreadEngine: Allow interthread signaling without needing as many hacksGravatar danieldg2009-03-233-6/+200
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11251 e03df62e-2008-0410-955e-edbf42e46eb7
* ThreadEngine: remove MutexFactory, mutexes should be constructed using their ↵Gravatar danieldg2009-03-234-157/+113
| | | | | | constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11250 e03df62e-2008-0410-955e-edbf42e46eb7