summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket2.cpp
AgeCommit message (Collapse)Author
2007-10-31Use XLineFactory in ADDLINE, so that it can deal with anything the rest of ↵brain
the ircd knows about git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8444 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-31Make it all compile.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8443 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-31Spanningtree now compilesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8435 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28PERL PIE FOR ALL: Rename a fuckload of XLineManager's methodsw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8399 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28- Tear out a useless load of XLine clutters that did nothing much except ↵w00t
confuse things - Revert back to early 1.0 design of using a single list for line storage. We'll make this work more efficiently than 1.0 though of course. This simplifies the code for expiry, checking, etc. - Merge a bunch of sort callbacks into a single sort callback for class XLine. - Horribly break apply_lines() for the time being. .. and that's probably it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8398 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15InspSocket -> BufferedSocket. Paves the way for a SimpleSocket class which ↵w00t
ident etc will use. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8206 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15In the grand tradition of huge fucking commits:w00t
- chanrec -> Channel - userrec -> User Enjoy. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8204 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-14Change the way origins are shown in snonotice, for djGrrr :pbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8181 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-09Change 'unrecognised command BLAH' to 'unrecognised or malformed command ↵brain
BLAH' just to make it obvious to lazy people. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8140 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-27Forgot part of the fix for bug #404special
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8086 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-04* Fixed some incorrect declarations in IOCPEngineburlex
* Fixed the virtual socket wrapper functions in IOCPEngine {these should really be inlined on unix} * Fixed several compilation issues under Win32 * Fixed calls to close() which should've been changed to SE->Close() + Added a crashdump saving system to Win32 builds. Dumps are saved in the format of dump-<exename>-<year>-<month>-<day>-<hour>-<minute>-<second>.dmp in the working directory. Enabled by default, undefine ENABLE_CRASHDUMPS to disable. + Added m_operflood, this is a module I've had lying around for some time but some users may like it as it allows unreal-like behaviour without increasing flood limits for non-opers. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8015 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-02Fixed an issue that could cause empty parameters in module commands to not ↵special
be sent to other servers properly git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8012 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-29Make IsSID completely strict: Must be [digit][A-Zdigit][A-Zdigit], nothing else.brain
Use it to sanity check SID given on link git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7993 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28Move everything module-related out of InspIRCd and into ModuleManager, there ↵om
is a ModuleManager instantiated as InspIRCd::Modules. Several of the function names have changed slightly as well. e.g. Instance->FindModule(m_foobar.so); is now Instance->Modules->Find(m_foobar.so); All modules in the core distribution should also be updated in line with these changes. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7985 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28Tidy up here, same tidyup cannot go back to stable as it involves uidsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7984 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28Add SVSPART at request of the Anope team - You can tell if the server has ↵brain
SVSPART by the presence of SVSPART=1 in the CAPAB. No, we will NOT be enforcing this network-wide, its a server-origin command so it wont cause disconnects if it doesnt exist somewhere. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7982 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28If we see a NICK message without a timestamp on it, squit the serverbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7980 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28Note: NICK now takes two params, a nickname and a timestamp of the change.brain
When a nick change occurs this must update the users timestamp, so that the users nick is marked to a newer TS. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7977 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28When a server sends a SERVER command with <5 params, dont just close the ↵brain
connection without error. Give the error "Protocol violation -- Missing SID" git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7974 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28Last raft of compile fixesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7967 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28Convert yet more to ServerConfig::GetSID() - this is the last of the obvious ↵brain
stuff. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7963 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28Tidy up duplicate code, provide GetSID() method on ServerConfig which ↵brain
returns the SID always 3 digits long git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7959 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28Drop nick from incoming client on change collision if incoming client ↵w00t
'loses' the change, and document why we do this git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7955 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28Hmm. We shouldn't use FindNick here, as that will find on UID, which while ↵w00t
it should not be a problem, might be. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7949 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28Slight change to traffic logging, as I never remember which way the damn ↵w00t
arrows go: I now means in, O now means out. C and S remain unchanged git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7948 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28Remove unneeded headers from spanningtree. This was done to the rest of the ↵w00t
source base the other day. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7945 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28Remove the last uses of localised fake clients. This removes a lot of ↵w00t
allocations (and uses of UIDs), and cleans things up a bit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7943 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28Handle nick change collision through the same rules nick introduction ↵w00t
collision is handled. No code duplication, and now, no kills either. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7937 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Fix potential for duplicate SID if the SID is auto generated.brain
Auto generated SIDs are initialized too late after modules are loaded rather than before. Fixed. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7924 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Fix to use DuplicateID. This stops things segfaulting on duplicate SID ↵w00t
introduction, which is, of course, bad. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7923 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Well, this probably works. But it might not. :D.w00t
- If a server is introduced with an already-existing SID, kill it off the network. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7921 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Move SID into TreeSocket constructor. w00t, search for "new TreeSocket" to ↵brain
see where to catch git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7920 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Store id in TreeServer, use TreeServer::GetID() to get the id (NOTE: it is ↵brain
std::string) Server id sent on all outbound and inbound SERVER now. last parameter before desc. Min params for SERVER is now 5, not 4. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7918 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Don't try do lookups by nickname any more, all s2s traffic should be using ↵w00t
UID now. If it's not, well, we need to know anyway. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7907 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Remove some old style compatibility checking for 1.0-alpha servers, this ↵w00t
really isn't needed anymore, as they will ERROR off anyway with an unknown command git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7906 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27If SVSNICK fails, attempt to change to UID, before quitting as a last resort ↵w00t
(if a module disallows change to a UID, they need shooting) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7901 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Make this lookup by UUID ahead of nick also, so things work properly.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7865 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Make the server to server parser look for UUID. Currently it will fall back ↵w00t
and try to find by nick too, to help catch legacy use of nickname prefixes. This will not be the case eventually. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7864 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27This will royally fuck 1.2's linking right now, but..w00t
- Don't use NICK to introduce clients - DO use UID - On nick collide, change our client to their UID and let the other server do the same with theirs. The last point is currently the broken bit, see, we can't change a nick to something starting with a didget, because that breaks nick rules.. need to overcome this somehow. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7857 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27Fix to SVSJOIN: disallow invalid channel names. Needs backport.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7852 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26Make this compile, was missing a (peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7843 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26Hide remote oper up notices if quiet bursts are enabled etc. Adapted from ↵w00t
avenger's patch. Untested. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7840 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-26Routing failure messages back where they came from on /rconnectbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7826 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20Add a pair of colons which should fix some KILL messages being dropped and ↵brain
fix some desyncs on nick collision git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7772 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20Increase max time difference to 600 secsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7769 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-15* include/caller.h will now compile correctly on Windows platforms.burlex
+ Implemented gettimeofday in win32 wrapper, link rtt's will now display in milliseconds. * SocketEngine::BoundsCheckFd will now handle Windows event handler cases correctly. (fixing writing to sockets not working) * Fixed VC71 project. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7723 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-13Fix new millisec /map to compile on windows, by ifndef gettimeofday out ↵peavey
reverting back to seconds for latency. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7717 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-07Feature request from djGrr, allow changing of server to server ping frequencybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7686 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-05Change latency figures in /map to milliseconds, much more useful for lag ↵brain
measurement than seconds git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7667 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-03There was a missing colon on remote numeric 376. Spotted by Hal9000 of Denora.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7637 e03df62e-2008-0410-955e-edbf42e46eb7