summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
AgeCommit message (Collapse)Author
2006-12-30Add unregistered user counter, this may also fix the (minor) m_conn_lusers ↵brain
shows current connection as unregged git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6170 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24Tidyupbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6104 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24And fix obligitary brainfartsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6099 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24Whoops, crash on sighup due to passing null argv and argc (similar to ↵brain
rehash, throwback to old code) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6098 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24Damnit, the comment caused a conflict :<brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6096 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24w00t was right, freebsd needs <getopt.h> toobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6095 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24Added a comment /* GNUs smell */ to an #ifdef linux makes us put inbrain
(what sort of craqsmoker puts posix standard functions that belong in unistd.h into getopt.h but only on linux? muppets). #ifdef _GNU_SOURCE #include <getopt.h> #endif ..... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6094 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24Change argument parsing to use getopt_long_only().brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6093 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24Neither should thisbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6089 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24Relatively small typo fixbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6088 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24Add call for OnGarbageCollect to the hourly cleanupbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6087 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24Do garbage collection of hash map automatically every hourbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6085 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Better checks for NULL log handlesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6083 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Crash on /rehash fixed (old code in here passed NULL, 0 as argc, argv, this ↵brain
is BAD BAD BAD.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6081 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Hash rehashing changebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6080 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Close logfile on rehash and reopen (it was only doing this on sighup for ↵brain
some reason) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6079 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Fix exit in wrong place, and add new exitcodes.hbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6077 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Fix bug in m_dnsbl, a condition is always matched because someone was using ↵brain
unsigned int to check a return val that can be -1 *slap w00t* Change around the way exit codes are formed so that we can return a sensible exit code that reflects why inspircd exited git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6076 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Program termination (including SIGTERM) now calls InspIRCd::Cleanup() which ↵brain
does most of the duties performed by InspIRCd::Restart(). This means that on controlled shutdown we give the modules a chance to unload, etc, and close our sockets and free ram in a proper way. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6075 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Fix issue where the last module to be loaded wasnt unloaded by restartbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6074 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Cut down on debug on restartbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6073 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Use GetModuleCount() rather than the member varbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6072 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Fix glitch when restarting on 2nd pass of module unloadbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6071 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Add more comments.brain
Catch CoreException in cmd_restart, and if we catch one, just exit(0). Theres very little else we could do. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6070 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Close client sockets too (do these last)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6069 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Unload as many modules as we can on restart, and close listenersbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6068 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23Refactored /RESTART (and added InspIRCd::Restart(reason))brain
Fixed bug in m_ziplinks, assigning instead of testing a var (gcc 4.1.1 picked up on this, 3.4 didnt) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6067 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-16Add stuff so that the core catches CoreException properlybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6017 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-15s/ChatSpike/InspIRCd/ development teamw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5999 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-15Jesus, look who's the commit whore today. More header updates, and removal ↵w00t
of namespacing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-14CPU Usage percent in stats z! yay!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5988 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-13Improve the way 005 ISUPPORT is sent to users when they connect, cache it in ↵brain
a much more sane format which is much simpler to spool to them git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5978 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-12New clone counting mechanism (this isnt tested yet)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5967 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-10Add InspIRCd::UseInterface and InspIRCd::DoneWithInterface, and also ↵brain
InspIRCd::GetInterfaceUseCount(). These can be used for one module to lock other modules in memory that it depends on, this way they can enforce an unload order so that you cant (for example) unload m_ssl_gnutls.so whilst m_spanningtree.so is using it for ssl server to server sessions (in this case, youd have to unload spanningtree first, THEN ssl_gnutls, to satisfy the dependencies and unload orders) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5924 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-29Added InspIRCd::GetTimeDelta() - previously m_alltime was using a hack to ↵special
get the delta, which wasn't always reliable git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5827 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-12Grammar nazi in the hizousebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5729 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-12When some (but not all) of the ports fail to bind on startup, give the user ↵brain
a list of the failed port/ip pairs on the terminal. Other ircds dont do this, and say 'go read the log'. I say if we can output them to a log, why not the screen? :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5728 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-10Add fix for patch #166 (this is a reasonably big one)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5679 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-09Move peaveydk to core developers, jamie to contributors as he appears to be ↵w00t
AWOL. Well done, peavey. :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5664 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-05Change message to indicate that the count only includes client portsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5654 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-05Added time syncing! This is fairly simple - servers exchange timestamps and ↵special
use the lowest - but should get rid of the annoying bounces for those of us who can't depend on ntpd. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5649 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-04As requested by satmd, inspircd will now run with no client ports configuredbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5643 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-02This is tidier, we dont need a seperate bool and intbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5628 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-02LoadModule will now also return false if the glob pattern matches no modules ↵brain
and loads nothing git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5627 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-02Allow wildcards in LoadModule calls. If a filename contains either * or ? it ↵brain
will attempt to readdir() the currently configured module dir and load all modules which match. If any one module fails, LoadModule then returns false. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5626 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31Socket error state stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5607 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-28Needs more testing but seems to work: In DoBackgroundUserStuff(), calculate ↵brain
the time value of when we actually do need enter the function body again, and dont run function body again till that time git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5568 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-28Try this, werdnumbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5562 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-27Allow relative path on pid filebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5547 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-16Added a tiny bit more logging to LoadModule, to log to default loglevel when ↵brain
a module is loaded git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5487 e03df62e-2008-0410-955e-edbf42e46eb7