summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-09-02Cast rework: use C++ style static_cast<> instead of C-style castsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11595 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Rework mode parser into slightly smaller chunksdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11594 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Replace std::deque with std::vector in spanningtree and related modulesdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11593 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Change allocation of commands/modesdanieldg
API change: Commands passed to AddCommand are no longer deleted automatically This removes lots of needless heap allocation and fixes a few memory leaks by allocating commands and modes as part of the Module rather than creating them separately in the module constructor. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11592 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Clean up challenge generation to not include character 0x7F, and fix some ↵danieldg
other things in the file git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11591 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Verify modules providing routed commands are VF_COMMONdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11590 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Read multiple GnuTLS records in one RawSocketRead operationdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11589 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Use a bool return type for boolean returndanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11585 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Use sa_size() rather than sizeof() when passing input parameters to a syscalldanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11583 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Remove unneeded #ifdef IPV6 linesdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11582 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Remove unneeded paramaters from OnAcceptReadydanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11581 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Move IP<->sockaddr conversions into irc::sockets:: namespacedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11580 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Remove now-unused insp_sockaddr and insp_inaddr typesdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11579 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Remove more text<->binary IP conversions, making code more IPv4/IPv6 independentdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11578 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Rename User::GetPort to GetServerPort to clarify its purposedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11577 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Return server port in GetPort rather than the arbitrary client portdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11576 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Change IP address storage in User to use more IPv4/IPv6 common codedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11575 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Remove needless sockaddr[2] allocations, replace with ↵danieldg
irc::sockets::sockaddrs union git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11574 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Strip SUPPORT_IP6LINKS #definedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11572 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Move VERSION/REVISION to their own header to avoid needless rebuilds on updatedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11561 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Re-implement dependency generation in perl to increase speeddanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11559 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Fix build of m_spanningtree and display of dependency regenerationdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11557 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Add m_delaymsg - channel mode +d <time> prevents users from speaking for ↵danieldg
<time> seconds after join git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11555 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Show metadata keys and values in /CHECK outputdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11554 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Bump version on the right branch this time.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11552 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-29Bump out of RCw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11546 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-28Stop a potential null pointer dereference introduced by Namegduf's patch, ↵w00t
found by Dessa/Kuja for finding this, and to danieldg, Special, Namegduf and psychon for their input. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11545 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-28Patch from Namegduf to use OnUserMessage instead of OnUserPreMessage, and ↵w00t
correctly prioritize events to fix channel aliases arriving after the effects of the alias. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11542 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-28Don't subtract one from MAXCHANNELS, it's a number, not a string length.w00t
Reported by Sm0ke0ut. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11541 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-27override: pass handling back to the core to send numerics if join ↵w00t
restrictions apply. Thanks to webczat for (eventually) being able to communicate what the problem was. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11540 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-20Fix access-after-free on rehashdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11534 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-19Fix a regression from fcb51634669e6ed588e42f2072c6f910e267126f ("fix uid ↵w00t
collision on spanningtree reload") caused by access-after-free. Thanks to transnet for the report. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11533 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-17Allow forward linking compatability by accepting higher protocol version ↵danieldg
numbers (other server should fail the link if it becomes link-incompatable) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11531 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-16cgiirc: Pass hosts to WEBIRC command on rehash. No fucking wonder this never ↵w00t
worked except on module load. _ARGH_. Thanks to Jeremy for his help in tracking this down. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11528 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-15Partial revert of 1fb8a3f1b120db764375911be9ad8019a807a8ad by dKingston, ↵w00t
(adding RPL_NOTOPICSET). This is *not* defined as a return for JOIN message, and it's a bit annoying too. Keep the define and use it in TOPIC instead of '331' though. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11527 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-15win: Last part of support required for VS2010:w00t
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
2009-08-15Bump version to rc5.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11522 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14Fix a compile error for IPv6 windows builds, discovered by Flospecial
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11519 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14Make ident handling consistant: use ChangeIdent for all ident manipulation. ↵w00t
This fixes cache bugs properly. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11518 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14Print line on empty prefix errors to track down a bugw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11517 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14Set log to null on close and check for null loghandle on ↵w00t
FileWriter::WriteLogLine. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11516 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14(Hopefully) fix a issue with m_ident's result not being used for display.psychon
The user class has a couple of caches for the user's hostmask. If one of those caches is initialized before m_ident set the user's new ident it would stick around until the cache was invalidated the next time. This patch fixes this by using the proper API for setting a user's ident which also invalidates any caches which might still have the old ident. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11514 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14Remove some very verbose debug that isn't really needed anymorew00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11512 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14Apply fake lag on garbage input to discourage crapw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11511 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-13Merge patch from dKingston for missing TOPIC numeric, also replace the ↵brain
literal 331 with an RPL_* enum value, thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11510 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12Fix printf format warningdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11508 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12Change to using read/write not send/recv on the ThreadSignalSocket pipedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11506 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12Make rehash work more than once per run, and fix some uninitialized values ↵danieldg
in connect classes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11505 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-12Fixes for config readerdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11504 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-11Fix module prioritization when a module asks to be after spanningtree, which ↵danieldg
asks to be last git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11502 e03df62e-2008-0410-955e-edbf42e46eb7