summaryrefslogtreecommitdiff
path: root/src/modules/m_ident.cpp
AgeCommit message (Collapse)Author
2006-11-21fix for bug #175, change OnUserRegister to return int, and if greater than 0 ↵peavey
= user was quit and stop propagating to rest of loaded modules. Also bumb the module API version. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5783 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-22Delete idents when disconnecting?brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5525 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-19Insert massive change here.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5504 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06Document more classesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5435 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-04Fix jamies fix (you cant strcpy to a char* pointer, without first allocating ↵brain
some memory!) -- made it char newident[MAXBUF]. Added extra fixage for when the ident module gets 'connection refused' right away, this also prepends the ~ properly too now git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5413 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-04*slaps* jamie for not using tabs to indent ;-pbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5409 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-04Prepend ident with '~' if we get no responsejamie
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5408 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-01Now with binary versioning goodnessbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5366 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-10This should fix the timeout issues pippjin was experiencingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5211 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-28Note: connect() cant time out for inspsockets in this commit. They'll sit in ↵brain
memory forever -- if you want something actually working properly wait for the next commit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5040 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-18Fix timeoutsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4977 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-18Fix ident timeouts to work properly when the connect succeeds but nothing ↵brain
comes in as a reply to the ident request git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4976 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-18EventHandler class, an abstraction for raw i/obrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4941 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Somehow, IMPORTANT changes got reverted.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4885 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Change to using Instance->Log (InspIRCd::Log) rather than log() macrobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Now two types of log macro, log() and ilog(). log() assumes an InspIRCd ↵brain
object called ServerInstance, ilog() takes an InspIRCd object as first param. 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
2006-08-11ConfigReader and FileReader now take InspIRCd* to their constructorsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4865 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11None of the modules use an extern InspIRCd* any morebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4863 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-10Last of Server:: methods moved to InspIRCd::. Server:: removed.brain
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
2006-08-10Note: FOR THE MOMENT, this is BROKEN. It wont run right until im done.brain
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
2006-08-10Move IsNick, IsIdent into class InspIRCd, update modules that use it.brain
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
2006-08-10Removal of Server::Log -- not much ever used it anyway with the ability to ↵brain
use log(). log() macro still exists, and calls InspIRCd::Log() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4845 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-09Move socket_ref and module_sockets vectors/arrays into InspIRCd*. These are ↵brain
public members, which InspSocket can modify. (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
2006-08-08WHEEEEE!!!!!brain
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
2006-08-04Change to using userrec::ip as a sockaddr to store port, ip and address ↵brain
family, rather than userrec::ip4 and userrec::port. 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
2006-08-01The IPV6 stuff compiles now, with compile-correct ipv6 code. I dont know if ↵brain
this works yet. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4611 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01Move to entirely using insp_sockaddr and insp_inaddr for socket stuff, first ↵brain
step on the road to ipv6 support git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4609 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10More fixesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4281 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-07Fix for segfault if a user quits before their ident is complete, due to ↵brain
session limit reached 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
2006-05-02Forwardport (yes those do happen).brain
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
2006-04-24delete operator tracking in debug mode (using a macro -- live with it.)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-18Fix for crashes in m_ident (should work)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3883 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-06Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE ↵w00t
THEM - we now have no stupid spaces. This was mostly a mass find/replace, so some indentation may be stuffed. Minor issue, though. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11And morebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3657 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09Strlen bashing.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3600 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-03Why are we using the users hostname to connect back to port 113? we can use ↵brain
ip here, and save ourselves a lookup git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3043 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-02When socket fails to construct, we now check the GetState() of the socket ↵brain
object to detect this condition. 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
2006-02-02More nonblocking dns stuffsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3020 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-27Added OnCleanupbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2942 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Removed unneccessary strlcpybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2927 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Damn string exceptionsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2925 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Grrbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2924 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Removal of a comment - DRASTICALLY IMPORTANT, THIS COMMENT CAN CAUSE A MAJOR ↵brain
SYSTEM CRASH! ;) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2923 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Removed a load of unneeded includes (poll.h etc)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2922 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Moved these into initialization-listbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2921 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Incorrect initialization orderbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2920 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Default ident timeout to 1 sec if not defined (a bit low, but better than 0!)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2918 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Updated m_ident to use inspsocket, should be more reliable - *NEEDS TESTING*brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2917 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-15Updated copyrights in headers etc using perl inplace editbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-26And morebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2660 e03df62e-2008-0410-955e-edbf42e46eb7