summaryrefslogtreecommitdiff
path: root/src/modules/m_ident.cpp
Commit message (Expand)AuthorAgeFilesLines
* Now with binary versioning goodness•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5366 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-011-1/+1
* This should fix the timeout issues pippjin was experiencing•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5211 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-09-101-1/+6
* Note: connect() cant time out for inspsockets in this commit. They'll sit in ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5040 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-281-23/+1
* Fix timeouts•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4977 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-181-1/+4
* Fix ident timeouts to work properly when the connect succeeds but nothing com...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4976 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-181-1/+11
* EventHandler class, an abstraction for raw i/o•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4941 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-181-7/+7
* Somehow, IMPORTANT changes got reverted.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4885 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-111-9/+5
* Change to using Instance->Log (InspIRCd::Log) rather than log() macro•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-111-3/+3
* Now two types of log macro, log() and ilog(). log() assumes an InspIRCd objec...•••TODO: Run a regexp over these, using perl, to translate them into InspIRCd::Log calls and then eliminate the macro :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4879 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-111-4/+3
* ConfigReader and FileReader now take InspIRCd* to their constructors•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4865 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-111-1/+1
* None of the modules use an extern InspIRCd* any more•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4863 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-111-2/+2
* Last of Server:: methods moved to InspIRCd::. Server:: removed.•••This will need a real good tidyup later, because now everything is in the right place, but its a mess because for now i threw them into place (e.g. space indenting, etc) Next on the todo: Make command handlers have a ServerInstance (gank!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4861 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-7/+7
* Note: FOR THE MOMENT, this is BROKEN. It wont run right until im done.•••Changed Parameter for modules from Server* to InspIRCd*. TODO: Move remaining Server* Modules into InspIRCd* and remove class Server. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4859 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-3/+3
* Move IsNick, IsIdent into class InspIRCd, update modules that use it.•••Change message.h to just a #warning saying its deprecated, and remove all use of it from the core :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4847 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-3/+6
* Removal of Server::Log -- not much ever used it anyway with the ability to us...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4845 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-4/+4
* Move socket_ref and module_sockets vectors/arrays into InspIRCd*. These are p...•••(eventually, this will be marshalled safely through some accessors). When constructing an InspSocket you must now provide an InspIRCd* instance to 'attach' the socket to. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4812 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-091-2/+4
* WHEEEEE!!!!!•••All of: Write(), WriteTo(), WriteFrom(), WriteServ() are now methods of userrec. Write_NoFormat(), WriteTo_NoFormat(), WriteFrom_NoFormat(), WriteServ_NoFormat() are now std::string-taking overloaded methods of the functions above All modules updated to use new syntax, my fingers hurt :( git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4798 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-081-4/+4
* Change to using userrec::ip as a sockaddr to store port, ip and address famil...•••This allows us to handle remote ipv6 users on an ipv4 server, and vice versa. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4694 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-041-1/+1
* The IPV6 stuff compiles now, with compile-correct ipv6 code. I dont know if t...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4611 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-011-1/+5
* Move to entirely using insp_sockaddr and insp_inaddr for socket stuff, first ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4609 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-011-2/+2
* More fixes•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4281 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-101-6/+6
* Fix for segfault if a user quits before their ident is complete, due to sessi...•••Do this by checking their pointer in the fd_ref_table against the pointer we got when we started the lookup, so we can know if its been invalidated or not (just in case the OnClose occurs before we NULL the user) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3992 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-06-071-6/+26
* Forwardport (yes those do happen).•••Because of a re-arrangement in the way sockets work, there is a chance a socket can still be in existence after the user its connected to (in the case of ident) is no longer valid. Neatly NULL the value so we can avoid goofing around in bad data. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3925 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-05-021-9/+17
* delete operator tracking in debug mode (using a macro -- live with it.)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-04-241-2/+2
* Fix for crashes in m_ident (should work)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3883 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-04-181-8/+26
* Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE T...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2006-04-061-28/+34
* And more•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3657 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-111-1/+1
* Strlen bashing.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3600 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-091-5/+4
* Why are we using the users hostname to connect back to port 113? we can use i...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3043 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-031-1/+1
* When socket fails to construct, we now check the GetState() of the socket obj...•••If we dont, we can end up leaking fd's and RAM on failure. We dont use exceptions here as these operations can occur very often. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3021 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-021-2/+10
* More nonblocking dns stuffs•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3020 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-021-0/+5
* Added OnCleanup•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2942 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-271-1/+14
* Removed unneccessary strlcpy•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2927 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-261-6/+2
* Damn string exceptions•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2925 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-261-2/+3
* Grr•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2924 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-261-1/+1
* Removal of a comment - DRASTICALLY IMPORTANT, THIS COMMENT CAN CAUSE A MAJOR ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2923 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-261-1/+0
* Removed a load of unneeded includes (poll.h etc)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2922 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-261-10/+0
* Moved these into initialization-list•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2921 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-261-3/+1
* Incorrect initialization order•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2920 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-261-2/+2
* Default ident timeout to 1 sec if not defined (a bit low, but better than 0!)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2918 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-261-0/+2
* Updated m_ident to use inspsocket, should be more reliable - *NEEDS TESTING*•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2917 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-261-220/+84
* Updated copyrights in headers etc using perl inplace edit•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-151-1/+1
* And more•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2660 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-12-261-0/+5
* Changed behaviour of module API to pass Server* to the constructor, rather th...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2252 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-12-071-5/+5
* Added a parameter to OnRehash for the rehash parameter•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2058 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-11-301-1/+1
* Started on -Wall - safe compile•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1570 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-05-301-0/+1
* Changed to use __single_client_alloc, faster on most systems in a single thread•••Specified namespace std in *all* files git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1404 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-05-151-0/+2
* Added basic sendq stuff - WARNING, there is no configuration yet, this CVS al...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1361 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-05-111-14/+16
* Removed some unceccessary debug output•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1135 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-04-201-2/+2
* Added OnUserDisconnect method to modules.* to fix fd leak in m_ident.cpp•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1134 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-04-201-5/+34