aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-283-4/+4
| | | | | | 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
* Oops: initialise fake client after UID setup, so it gets a UID. This may be ↵Gravatar w00t2007-08-281-4/+4
| | | | | | unnecessary, but I'd rather not explode things anyway. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7947 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
* Remove some fake client stuff, make it use the global recordGravatar w00t2007-08-287-42/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7941 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
* Add a global fake client to class InspIRCd used instead of instantiating a ↵Gravatar w00t2007-08-281-0/+4
| | | | | | fake client every time a mode needs to be forced through, etc git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7938 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
* Make this comment make a little more sense.Gravatar w00t2007-08-281-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7935 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
* INFO now looks much prettier than it did 5 seconds ago :oGravatar w00t2007-08-281-39/+20
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7931 e03df62e-2008-0410-955e-edbf42e46eb7
* Just as well I added this guy, he's very useful :PGravatar w00t2007-08-271-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7930 e03df62e-2008-0410-955e-edbf42e46eb7
* danielg -> danieldg. My apologies.Gravatar w00t2007-08-271-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7929 e03df62e-2008-0410-955e-edbf42e46eb7
* Add danielg and praetorian to testers list.Gravatar w00t2007-08-271-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7928 e03df62e-2008-0410-955e-edbf42e46eb7
* Similar refactor here. Thanks danielg.Gravatar w00t2007-08-271-3/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7927 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidy this up a bit (it looked weird :P)Gravatar w00t2007-08-271-10/+19
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7926 e03df62e-2008-0410-955e-edbf42e46eb7
* While I'm in here, make it easier to read, and use short circuiting ↵Gravatar w00t2007-08-271-1/+1
| | | | | | (IS_REMOTE is quicker than checking if the user really has access) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7925 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix potential for duplicate SID if the SID is auto generated.Gravatar brain2007-08-273-36/+48
| | | | | | | 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
* Add <server:id> - this is optional, as stated in the example conf,Gravatar brain2007-08-273-8/+28
| | | | | | | and should only be set if you are getting collisions. The comment also points out that ids where either of the last two letters are numeric are reserved for services use (e.g. 0ZZ or 5CQ) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7917 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
* Catch exceptions here for duplicate uuid (it shouldnt happen, which is why ↵Gravatar brain2007-08-271-1/+11
| | | | | | the exception message is so rediculous) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7914 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
* NOTICE, PRIVMSG, WHOIS; dont allow local users to /msg <uid> etc. This ↵Gravatar brain2007-08-273-3/+14
| | | | | | | | | prevents a primative possible type of 'stalking' of users. We still need to use full FindNick for remote use. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7908 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