summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Document more classesGravatar brain2006-10-061-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5435 e03df62e-2008-0410-955e-edbf42e46eb7
* Document a ton of classes (e.g. give them a short description for ↵Gravatar brain2006-10-061-0/+2
| | | | | | http://svn.inspircd.org/docs/annotated.html) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5434 e03df62e-2008-0410-955e-edbf42e46eb7
* Report invalid command name when invalid command is given in negotiation phaseGravatar brain2006-10-051-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5424 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove some annoying debugGravatar brain2006-10-051-6/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5423 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed freeing of bound sockets when unloading spanningtreeGravatar brain2006-10-051-3/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5422 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove VF_STATIC from spanningtree and make a clever destructor to close and ↵Gravatar brain2006-10-051-1/+23
| | | | | | free all its open sockets. In theory this will make insp split from everything neatly when you unload spanningtree. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5418 e03df62e-2008-0410-955e-edbf42e46eb7
* Add <options:announcets> to output the "TS for #chan changed from 1111 to 2222".Gravatar brain2006-10-051-1/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5417 e03df62e-2008-0410-955e-edbf42e46eb7
* Check for non-existent channel in FMODEGravatar brain2006-10-041-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5415 e03df62e-2008-0410-955e-edbf42e46eb7
* Nickname collisions were broken! :OGravatar brain2006-10-041-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5410 e03df62e-2008-0410-955e-edbf42e46eb7
* Someone review the comments i put in from line 1515 onwards, and see if ↵Gravatar brain2006-10-031-8/+72
| | | | | | theyre legible and make FJOIN understandable? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5407 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup (remove casts) and commenting FJOIN a lot, so that others can fix ↵Gravatar brain2006-10-031-24/+67
| | | | | | stuff that breaks (if it breaks) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5406 e03df62e-2008-0410-955e-edbf42e46eb7
* Fake direction check in FJOIN on all users, plus tidyup of the code that ↵Gravatar brain2006-10-031-7/+22
| | | | | | forms the modeline for giving them their privilages git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5405 e03df62e-2008-0410-955e-edbf42e46eb7
* Seems to work nowGravatar brain2006-10-021-0/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5400 e03df62e-2008-0410-955e-edbf42e46eb7
* mmmm dinner break, oh and document and make use of modestacker.Gravatar brain2006-10-021-20/+25
| | | | | | | Someone test this, i cant as im at work. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5395 e03df62e-2008-0410-955e-edbf42e46eb7
* Add r5381 fix to remote rehash tooGravatar w00t2006-10-021-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5382 e03df62e-2008-0410-955e-edbf42e46eb7
* This ULine check looks really, really bad - and caused horrible things to ↵Gravatar w00t2006-10-021-1/+2
| | | | | | happen (equal TS wasn't merged, causing infinite loops.). I think removing it is the solution, Brain, please verify when you wake up. Seems to fix it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5380 e03df62e-2008-0410-955e-edbf42e46eb7
* It all came down to a >1 where we needed a >0. Things should be stable now jamieGravatar brain2006-10-011-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5375 e03df62e-2008-0410-955e-edbf42e46eb7
* Now with binary versioning goodnessGravatar brain2006-10-011-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5366 e03df62e-2008-0410-955e-edbf42e46eb7
* Cleaned up FJOIN a bit, fixing another segfault in the process. Brain should ↵Gravatar special2006-09-281-13/+12
| | | | | | take a look at this and see if there are any subtle bugs in how it works, since its trackrecord isn't great :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5355 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed another segfault in m_spanningtree's FJOIN (forgot to check if the ↵Gravatar special2006-09-281-3/+2
| | | | | | channel existed before setting its TS) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5354 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix bug found by giggsey (even though he doesnt realise he just found one)Gravatar brain2006-09-261-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5340 e03df62e-2008-0410-955e-edbf42e46eb7
* make OnPostConnect globalGravatar brain2006-09-261-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5339 e03df62e-2008-0410-955e-edbf42e46eb7
* Only output the 'AES on' message if the socket state isnt I_ERROR when its ↵Gravatar brain2006-09-261-5/+8
| | | | | | reached git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5337 e03df62e-2008-0410-955e-edbf42e46eb7
* Change error from 'connection established' to 'connection started'Gravatar brain2006-09-261-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5336 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed a rather obvious crashbug in m_spanningtree (FJOIN)Gravatar special2006-09-261-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5335 e03df62e-2008-0410-955e-edbf42e46eb7
* Make this compile. We now have to change all OnUserPreJoin useGravatar brain2006-09-251-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5326 e03df62e-2008-0410-955e-edbf42e46eb7
* Whoops, patchGravatar brain2006-09-251-25/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5324 e03df62e-2008-0410-955e-edbf42e46eb7
* Add send_topic event, lets you send a topic for a channel, set by a serverGravatar brain2006-09-251-2/+11
| | | | | | | (internally this translates as FTOPIC in this protocol) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5322 e03df62e-2008-0410-955e-edbf42e46eb7
* This needs some testing.Gravatar brain2006-09-241-36/+18
| | | | | | | | | Reversal of FJOIN behaviour, so that rather than the winning side removing the modes of the losing side's channel, the losing side removes its own status modes when it encounters the first FJOIN, and affirms them using FMODE so that the other servers know what it did. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5317 e03df62e-2008-0410-955e-edbf42e46eb7
* Add new server to server command:Gravatar brain2006-09-241-1/+51
| | | | | | | | | :server.name REMSTATUS #channel NOTE: Protocol version bumped to 1101 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5314 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix crashes, and in the process make xline even faster!Gravatar brain2006-09-191-16/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5304 e03df62e-2008-0410-955e-edbf42e46eb7
* Add const std::string &original_command to OnPreCommand and OnPostCommand, ↵Gravatar brain2006-09-171-3/+4
| | | | | | which gives the entire untouched command string and params in all its colon-ny glory git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5265 e03df62e-2008-0410-955e-edbf42e46eb7
* Comment tidyup and change format so doxygen can detect themGravatar brain2006-09-151-39/+35
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5252 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix some stuff, avoid use of global ServerInstance varGravatar brain2006-09-151-63/+61
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5250 e03df62e-2008-0410-955e-edbf42e46eb7
* Add a comment for readabilityGravatar brain2006-09-131-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5231 e03df62e-2008-0410-955e-edbf42e46eb7
* Try this, jamieGravatar brain2006-09-131-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5229 e03df62e-2008-0410-955e-edbf42e46eb7
* Add debug to m_spanningtree, verifies that inspircd works correctly on FMODE ↵Gravatar brain2006-09-131-1/+2
| | | | | | (after patches are applied) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5227 e03df62e-2008-0410-955e-edbf42e46eb7
* Forgot to returnGravatar brain2006-09-061-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5152 e03df62e-2008-0410-955e-edbf42e46eb7
* Finish off the fix for bug #136 (a biggie for such a simple thing)Gravatar brain2006-09-061-6/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5151 e03df62e-2008-0410-955e-edbf42e46eb7
* Command result codes. This isnt finished yet, still got to do most of the ↵Gravatar brain2006-09-061-1/+5
| | | | | | modules, and alter CallCommandHandler git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5149 e03df62e-2008-0410-955e-edbf42e46eb7
* JOIN now has a TS parameter on it. The client protocol will ignore this when ↵Gravatar brain2006-09-061-2/+9
| | | | | | we pass it down to the command parser, it is for use if theres a minor desync and we send a PART for the last user at the same time the other side sends a JOIN for a new user, we can at least keep the TS in step. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5148 e03df62e-2008-0410-955e-edbf42e46eb7
* Drop and log unknown nicks in FJOIN, rather than aborting the linkGravatar brain2006-09-061-25/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5147 e03df62e-2008-0410-955e-edbf42e46eb7
* New CAPAB variable (manditory): PROTOCOLGravatar brain2006-09-051-1/+19
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5145 e03df62e-2008-0410-955e-edbf42e46eb7
* This is a complex one: when autoconnecting, we check each links failover, ↵Gravatar brain2006-09-051-0/+12
| | | | | | and try and FindServer it. If we find that link's failover in the network, we dont try and autoconnect it as it probably established a link to that via another route anyway. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5144 e03df62e-2008-0410-955e-edbf42e46eb7
* 'Connection to %s closed' now says 'Connection to %s failed'Gravatar brain2006-09-041-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5143 e03df62e-2008-0410-955e-edbf42e46eb7
* Check for failover pointing at self. This is an obvious thing to check for ↵Gravatar brain2006-09-041-0/+5
| | | | | | and prevent :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5142 e03df62e-2008-0410-955e-edbf42e46eb7
* failover connections are now added, thanks for the idea Lauren (happy now? ↵Gravatar brain2006-09-041-66/+97
| | | | | | lol) :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5141 e03df62e-2008-0410-955e-edbf42e46eb7
* Only VF_COMMON modules are sent in CAPAB now, not VF_STATICGravatar brain2006-09-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5115 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #134 reported by mixx941: When user connects to ircd with no ↵Gravatar brain2006-08-311-1/+3
| | | | | | usermodes set on themselves, an m_spanningtree std::string throws a range exception because we try and substr npos. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5091 e03df62e-2008-0410-955e-edbf42e46eb7
* Forwardport fix from stable (bug#133 reported by insurgent): configuring a ↵Gravatar brain2006-08-311-35/+42
| | | | | | link block with the same name as the local server (?!) then linking to it causes segfault git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5090 e03df62e-2008-0410-955e-edbf42e46eb7