aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
Commit message (Collapse)AuthorAgeFilesLines
...
* Oops. We were missing a param on this SVSNICK for remote TS.. that probably ↵Gravatar w00t2007-08-281-1/+1
| | | | | | was blasting client TS on nick collision, which isn't good git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7966 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes 2Gravatar brain2007-08-281-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7965 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes 1Gravatar brain2007-08-281-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7964 e03df62e-2008-0410-955e-edbf42e46eb7
* Convert yet more to ServerConfig::GetSID() - this is the last of the obvious ↵Gravatar brain2007-08-283-26/+25
| | | | | | stuff. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7963 e03df62e-2008-0410-955e-edbf42e46eb7
* First round of servername->sid stuffsGravatar brain2007-08-283-50/+57
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7961 e03df62e-2008-0410-955e-edbf42e46eb7
* Use it here, tooGravatar brain2007-08-281-7/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7960 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidy up duplicate code, provide GetSID() method on ServerConfig which ↵Gravatar brain2007-08-282-14/+3
| | | | | | returns the SID always 3 digits long git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7959 e03df62e-2008-0410-955e-edbf42e46eb7
* Rice it up, biatchGravatar w00t2007-08-281-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7958 e03df62e-2008-0410-955e-edbf42e46eb7
* Change issid to IsSID to appease our anal retentiveness^H^H^H^H^H^H... i ↵Gravatar brain2007-08-282-3/+3
| | | | | | mean err, match the coding standards git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7957 e03df62e-2008-0410-955e-edbf42e46eb7
* Add SpanningTreeUtils::issid(). See top of utils.cppGravatar brain2007-08-282-0/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7956 e03df62e-2008-0410-955e-edbf42e46eb7
* Drop nick from incoming client on change collision if incoming client ↵Gravatar w00t2007-08-281-2/+14
| | | | | | '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
* Oops: This 'remote' needs to be local, otherwise our return value can be ↵Gravatar w00t2007-08-281-1/+1
| | | | | | incorrect in some cases. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7954 e03df62e-2008-0410-955e-edbf42e46eb7
* From RFC 2812, the funny = that i could never identify in NAMES reply: = ↵Gravatar brain2007-08-283-5/+5
| | | | | | | | | means public, @ means secret and * means private. Fixed in affected modules to display the proper character (will backport) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7952 e03df62e-2008-0410-955e-edbf42e46eb7
* bool SamePerson = strcmp(localident, remoteident) && !strcmp(localip, remoteip);Gravatar brain2007-08-281-1/+1
| | | | | | | change to: bool SamePerson = !strcmp(localident, remoteident) && !strcmp(localip, remoteip); git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7951 e03df62e-2008-0410-955e-edbf42e46eb7
* Long-standing bug: userrec::age should be set on remote introduction. This ↵Gravatar w00t2007-08-281-0/+1
| | | | | | does not affect 1.1. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7950 e03df62e-2008-0410-955e-edbf42e46eb7
* Hmm. We shouldn't use FindNick here, as that will find on UID, which while ↵Gravatar w00t2007-08-281-1/+1
| | | | | | it should not be a problem, might be. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7949 e03df62e-2008-0410-955e-edbf42e46eb7
* Slight change to traffic logging, as I never remember which way the damn ↵Gravatar w00t2007-08-281-2/+2
| | | | | | 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
* Remove more unused headersGravatar w00t2007-08-284-13/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7946 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove unneeded headers from spanningtree. This was done to the rest of the ↵Gravatar w00t2007-08-2810-40/+0
| | | | | | source base the other day. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7945 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove the last uses of localised fake clients. This removes a lot of ↵Gravatar w00t2007-08-286-40/+11
| | | | | | 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
* Convert m_devoice to use global fake client, rather than rolling its ownGravatar w00t2007-08-281-4/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7940 e03df62e-2008-0410-955e-edbf42e46eb7
* Handle nick change collision through the same rules nick introduction ↵Gravatar w00t2007-08-282-1/+18
| | | | | | 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
* Move nickname collision logic into TreeSocket::DoCollision so that nickname ↵Gravatar w00t2007-08-282-67/+99
| | | | | | change collide can be dealt with without KILL use also. Note that currently this function is rather ugly, and DOES need attention, but should work... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7936 e03df62e-2008-0410-955e-edbf42e46eb7
* Mode to protect services from /kill and hide channel list in /whois from ↵Gravatar w00t2007-08-281-0/+98
| | | | | | everyone (opers included) - handy, and perhaps it could be extended to do other misc services related stuff so it doesn't have to be duplicated in m_serv, and _account together git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7934 e03df62e-2008-0410-955e-edbf42e46eb7
* Patche(s) to m_deaf by praetorian, allowing for certain characters to bypass ↵Gravatar w00t2007-08-281-23/+76
| | | | | | deafness (useful for say, fantasy commands & services), plus some other things.. needs proper review really, but at 1.30am, I'm not doing that, so in it goes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7933 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix potential for duplicate SID if the SID is auto generated.Gravatar brain2007-08-272-1/+15
| | | | | | | 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
* Fix to use DuplicateID. This stops things segfaulting on duplicate SID ↵Gravatar w00t2007-08-271-17/+9
| | | | | | introduction, which is, of course, bad. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7923 e03df62e-2008-0410-955e-edbf42e46eb7
* Add bool TreeSocket::DuplicateID(), as its not safe to throw then try and ↵Gravatar brain2007-08-272-3/+14
| | | | | | squit that server :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7922 e03df62e-2008-0410-955e-edbf42e46eb7
* Well, this probably works. But it might not. :D.Gravatar w00t2007-08-271-3/+37
| | | | | | - 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
* Move SID into TreeSocket constructor. w00t, search for "new TreeSocket" to ↵Gravatar brain2007-08-274-17/+27
| | | | | | see where to catch git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7920 e03df62e-2008-0410-955e-edbf42e46eb7
* This may need tidying up to make SetID internal and do this in the ↵Gravatar brain2007-08-273-0/+24
| | | | | | | | | constructor, but for now it works. AWOOGA AWOOGA WARNING: SetID can throw a CoreException if the id already exists! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7919 e03df62e-2008-0410-955e-edbf42e46eb7
* Store id in TreeServer, use TreeServer::GetID() to get the id (NOTE: it is ↵Gravatar brain2007-08-275-12/+55
| | | | | | | | | | 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
* Remove check for duplicate UUID, constructor of userrec throws for us insteadGravatar w00t2007-08-271-10/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7916 e03df62e-2008-0410-955e-edbf42e46eb7
* Update comment to say we need to SQUIT. This is a minor thing so im not ↵Gravatar brain2007-08-271-2/+11
| | | | | | going to fix it yet git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7913 e03df62e-2008-0410-955e-edbf42e46eb7
* This comment is no longer validGravatar w00t2007-08-271-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7912 e03df62e-2008-0410-955e-edbf42e46eb7
* Document the use of SVSNICK to fix a remote user on collideGravatar w00t2007-08-271-0/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7911 e03df62e-2008-0410-955e-edbf42e46eb7
* Okay. Make it compile too, and make equal TS collision work correctly.Gravatar w00t2007-08-271-6/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7910 e03df62e-2008-0410-955e-edbf42e46eb7
* Nickname collision: third revisitationGravatar w00t2007-08-271-5/+49
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7909 e03df62e-2008-0410-955e-edbf42e46eb7
* Don't try do lookups by nickname any more, all s2s traffic should be using ↵Gravatar w00t2007-08-271-27/+1
| | | | | | 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
* Remove some old style compatibility checking for 1.0-alpha servers, this ↵Gravatar w00t2007-08-271-10/+0
| | | | | | 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
* nickflood: Allow changes to UIDGravatar w00t2007-08-271-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7905 e03df62e-2008-0410-955e-edbf42e46eb7
* nicklock: Allow change to a UIDGravatar w00t2007-08-271-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7904 e03df62e-2008-0410-955e-edbf42e46eb7
* restrictbanned: Allow changes to UIDGravatar w00t2007-08-271-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7903 e03df62e-2008-0410-955e-edbf42e46eb7
* nonicks: allow switches to UID, so we don't get loads of unnecessary kills ↵Gravatar w00t2007-08-271-0/+3
| | | | | | on collides/svsnick git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7902 e03df62e-2008-0410-955e-edbf42e46eb7
* If SVSNICK fails, attempt to change to UID, before quitting as a last resort ↵Gravatar w00t2007-08-271-2/+10
| | | | | | (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
* TS may be a more elegant solution, but it is fucking horrible to write code ↵Gravatar w00t2007-08-271-77/+5
| | | | | | for, and hard to get right. Let's just change both. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7900 e03df62e-2008-0410-955e-edbf42e46eb7
* Oops, forgot a branch (the logic here totally sucks, it will need cleaning ↵Gravatar w00t2007-08-271-0/+20
| | | | | | up. I want to get it working first.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7899 e03df62e-2008-0410-955e-edbf42e46eb7
* Nick collision handling with TS rules. This probably doesn't work yet.Gravatar w00t2007-08-271-15/+39
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7898 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove some printfsGravatar brain2007-08-271-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7897 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for problems with translationsGravatar brain2007-08-271-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7896 e03df62e-2008-0410-955e-edbf42e46eb7