summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
AgeCommit message (Collapse)Author
2008-11-01Second attempt at time() -> SI->Time(), now problems with the original were ↵w00t
fixed. (SI::TIME was not initialised). Thanks Namegduf! (Please test, all, valdebug etc, report odd behaviour/warnings!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10783 e03df62e-2008-0410-955e-edbf42e46eb7
2008-11-01Fix a result of Tired Coding (tm)w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10774 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-31It is not my %$"*&%" day. This never happened.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10773 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-31Tidy up FJOIN processing somewhat - don't bother faking a TS to get modes ↵w00t
accepted, just use a high technology of programming known as an "if statement". Also add generous debug to this via snomask +d, as it seems the occasional desync is occuring. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10772 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-31Add REMOTEOPER snomask.. use it.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10770 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-31Move some messages (correctly) to remote link snomask.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10769 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-31Add snomask +s +L - remote link notices.w00t
Can be a useful distinction for bigger networks or networks with more distinction on what people can and cannot see. This also makes RemoteMessage more match it's docs and removes useless redundancy. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10759 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-28Remove comment, as it is now done.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10740 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-27Add user/channel mode synchronisation detection to CAPAB - link will now ↵w00t
drop if modes differ in some way (one side requires param, other doesn't, etc). Same for user modes. This will not affect services. Side effect: Modes::ChanModes() -> Modes::GiveModeList(ModeMasks), mode list is formatted identically for both MASK_CHANNEL and MASK_USER. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10733 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-27Be a hell of a lot more strict about malformed UID commands. We've always ↵w00t
been strict in the past, for some reason, we were previously very permissive about broken UID - there is no reason to be. If they're fucking up, then make them fix their problem :) (this is also a lazy man's fix to get around bad pointers/etc by deleting users outside of culllist). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10731 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-27Fix redundant stats snotice, thanks dz.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10730 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25Use TargetTypeFlags instead of int in a few places.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10711 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25As we have an enum for type, why not ..use it?w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10710 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25Note where to find the docs.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10704 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25Nuke space indents from orbit. (die!!)w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10703 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-25Move spanningtree to use OnChangeLocalUserHost instead of OnChangeHost, this ↵w00t
makes more sense, and also means we can call OnChangeHost for remote clients too, making it actually match it's documentation for the first time ever! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10702 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23Revert earlier time() -> SI->Time() diff for now, this causes problems with ↵w00t
dns.cpp in mysterious ways.. seemingly a bad pointer there somehow..? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10695 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-23Patch from Namegduf converting all instances (where possible) of time() -> ↵w00t
ServerInstance->Time(). Thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-14Remove outdated TODObrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10641 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-10Update comment that says we dont send simplemodes in FJOIN, we do now.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10635 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-08Fix crash caused by me being retarded.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10630 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-08Fix: call OnRawSocketAccept for server connections. This isn't yet done in ↵w00t
an ideal fashion, but it should work for now. Fixes bug #616, reported by dz. Thanks. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10629 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-05Some more safety checks to catch out invalid client introductions (e.g. from ↵brain
atheme when its too old (for some reason its no longer checking the protocol ID for this)) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10623 e03df62e-2008-0410-955e-edbf42e46eb7
2008-10-02Comments here toobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10618 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-30Some suggestions from jilles about handling unknown prefix errors, and some ↵brain
ideas of my own about handling unknown modes in client introduction to prevent leaving a desynched user on the source server git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10613 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-24Fix for listening sockets not clearing their timeout on connected. Reported ↵peavey
by Sazpaimon. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10594 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-22warning-free on windowsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10592 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-22Fix for bug #605 reported by MacGuyver, if a line is expired when we are ↵brain
adding another with the same hostmask, replace the existing line with the new one git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10589 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-21Be consistent. Use ServerInstance in all places instead of 'Instance' in ↵w00t
half. This has bugged me forever :p. I think I got all of extra/ too.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10579 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-21Fix various rline bugs, implement /stats R, and fix the issue where you get ↵brain
no error. "Something will already have said why it fucked up" -- what about when the rline fails due to missing provider? Also fix the fact that we dont have a catch around the Generate() in addline, which would just make insp abort. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10577 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-21Fix the 'i/o error on connection (no error)' stuff, by displaying 'connected ↵brain
closed unexpectedly' when errno == 0. Also trigger failover whenever a connection times out in the new authentication timeout code (the connection isnt properly established so the failover should trigger) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10575 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-19inbound sockets need a timeout, too. 30 secs should be pleantybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10560 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-19Implement timeout on outgoing server connections as per our docs <link:timeout>peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10558 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-11Fix KILL server-notice duplicationaquanight
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10517 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Remove a (now nonexistant) reference from .hw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10481 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-08Remove old listening stuff from spanningtree, use a new derived listener class.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10472 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31Two fixes: Ignore + when parsing mode string in UID, and dont prepend + if ↵brain
we already have one, to prevent '++' git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10368 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31More debugging mesages for troubleshooting invalid mode sequences in UIDbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10367 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31I guess it makes sense never to let the gecos be parsed as a mode param, ↵brain
even in error, in case it does something stupid git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10365 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31Move all the parameters around AGAIN. See docs shortlybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10364 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31Two fixes: First, change the error message for too few params for UID to now ↵brain
match the correct 11 params, and change the server name in remote kill to correctly show server name rather than sid git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10363 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31What the fuck am I doing.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10362 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31Off-by-one on params also == masskill, woow00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10361 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31Add snomasks to UID command, after 'modes', bump protocol version, as this ↵w00t
can cause fun masskills if an upgraded server is introduced to older servers git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10360 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-31Remove a redundant check, and fix user-mode change propegation. (closes bug ↵w00t
#574) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10358 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-29Tidier /modules generation. faster for non-opers, neater for all, and doesnt ↵brain
use all the strlcpys on stuff that isnt needed any more git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10354 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-29Safeguardsw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10352 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-29Fix extra End of /STATS on spanningtree override of stats c and n.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10350 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-29Remove some old stuffw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10348 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-27Don't force-finish a burst on a timer, instead, set bursted if a PONG is ↵w00t
recieved while still bursting (obviously wrong). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10326 e03df62e-2008-0410-955e-edbf42e46eb7