summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Crusade to remove debug from stable and tested parts of the core and base ↵Gravatar brain2007-01-151-10/+0
| | | | | | | | | | modules. Most of the code here being de-noised hasnt had a crash or bug in it for many months, if not a year so the debug output is useless noise in the logfile when trying to trace a bug in a REAL problem area. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6356 e03df62e-2008-0410-955e-edbf42e46eb7
* Cache channel max bans value to save an O(n) loop of match() on every ban ↵Gravatar brain2007-01-091-0/+8
| | | | | | (etc) add git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6267 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidy up old MaintainWhoWas.Gravatar peavey2007-01-071-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6251 e03df62e-2008-0410-955e-edbf42e46eb7
* Move all /WHOWAS related out of core and into cmd_whowas.Gravatar peavey2007-01-071-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6249 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix crash when unloading ssl module on shutdown -- there are no port objects ↵Gravatar brain2007-01-061-0/+4
| | | | | | to set the description back to 'plaintext' on, here. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6230 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix to allow for OnRehash to know what user initiated the rehashGravatar brain2007-01-011-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6207 e03df62e-2008-0410-955e-edbf42e46eb7
* Add missing feature: /rehash reinitializes dns subsytem (and can handle ↵Gravatar brain2006-12-311-0/+1
| | | | | | changed addresses) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6193 e03df62e-2008-0410-955e-edbf42e46eb7
* Add unregistered user counter, this may also fix the (minor) m_conn_lusers ↵Gravatar brain2006-12-301-0/+2
| | | | | | shows current connection as unregged git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6170 e03df62e-2008-0410-955e-edbf42e46eb7
* TidyupGravatar brain2006-12-241-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6104 e03df62e-2008-0410-955e-edbf42e46eb7
* And fix obligitary brainfartsGravatar brain2006-12-241-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6099 e03df62e-2008-0410-955e-edbf42e46eb7
* Whoops, crash on sighup due to passing null argv and argc (similar to ↵Gravatar brain2006-12-241-1/+1
| | | | | | rehash, throwback to old code) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6098 e03df62e-2008-0410-955e-edbf42e46eb7
* Damnit, the comment caused a conflict :<Gravatar brain2006-12-241-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6096 e03df62e-2008-0410-955e-edbf42e46eb7
* w00t was right, freebsd needs <getopt.h> tooGravatar brain2006-12-241-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6095 e03df62e-2008-0410-955e-edbf42e46eb7
* Added a comment /* GNUs smell */ to an #ifdef linux makes us put inGravatar brain2006-12-241-0/+1
| | | | | | | | | | (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
* Change argument parsing to use getopt_long_only().Gravatar brain2006-12-241-36/+38
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6093 e03df62e-2008-0410-955e-edbf42e46eb7
* Neither should thisGravatar brain2006-12-241-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6089 e03df62e-2008-0410-955e-edbf42e46eb7
* Relatively small typo fixGravatar brain2006-12-241-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6088 e03df62e-2008-0410-955e-edbf42e46eb7
* Add call for OnGarbageCollect to the hourly cleanupGravatar brain2006-12-241-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6087 e03df62e-2008-0410-955e-edbf42e46eb7
* Do garbage collection of hash map automatically every hourGravatar brain2006-12-241-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6085 e03df62e-2008-0410-955e-edbf42e46eb7
* Better checks for NULL log handlesGravatar brain2006-12-231-5/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6083 e03df62e-2008-0410-955e-edbf42e46eb7
* Crash on /rehash fixed (old code in here passed NULL, 0 as argc, argv, this ↵Gravatar brain2006-12-231-0/+4
| | | | | | is BAD BAD BAD.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6081 e03df62e-2008-0410-955e-edbf42e46eb7
* Hash rehashing changeGravatar brain2006-12-231-3/+33
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6080 e03df62e-2008-0410-955e-edbf42e46eb7
* Close logfile on rehash and reopen (it was only doing this on sighup for ↵Gravatar brain2006-12-231-1/+6
| | | | | | some reason) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6079 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix exit in wrong place, and add new exitcodes.hGravatar brain2006-12-231-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6077 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix bug in m_dnsbl, a condition is always matched because someone was using ↵Gravatar brain2006-12-231-10/+10
| | | | | | | | | 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
* Program termination (including SIGTERM) now calls InspIRCd::Cleanup() which ↵Gravatar brain2006-12-231-10/+21
| | | | | | | | | 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
* Fix issue where the last module to be loaded wasnt unloaded by restartGravatar brain2006-12-231-6/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6074 e03df62e-2008-0410-955e-edbf42e46eb7
* Cut down on debug on restartGravatar brain2006-12-231-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6073 e03df62e-2008-0410-955e-edbf42e46eb7
* Use GetModuleCount() rather than the member varGravatar brain2006-12-231-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6072 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix glitch when restarting on 2nd pass of module unloadGravatar brain2006-12-231-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6071 e03df62e-2008-0410-955e-edbf42e46eb7
* Add more comments.Gravatar brain2006-12-231-10/+21
| | | | | | | 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
* Close client sockets too (do these last)Gravatar brain2006-12-231-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6069 e03df62e-2008-0410-955e-edbf42e46eb7
* Unload as many modules as we can on restart, and close listenersGravatar brain2006-12-231-0/+20
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6068 e03df62e-2008-0410-955e-edbf42e46eb7
* Refactored /RESTART (and added InspIRCd::Restart(reason))Gravatar brain2006-12-231-0/+12
| | | | | | | 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
* Add stuff so that the core catches CoreException properlyGravatar brain2006-12-161-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6017 e03df62e-2008-0410-955e-edbf42e46eb7
* s/ChatSpike/InspIRCd/ development teamGravatar w00t2006-12-151-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5999 e03df62e-2008-0410-955e-edbf42e46eb7
* Jesus, look who's the commit whore today. More header updates, and removal ↵Gravatar w00t2006-12-151-24/+8
| | | | | | of namespacing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7
* CPU Usage percent in stats z! yay!Gravatar brain2006-12-141-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5988 e03df62e-2008-0410-955e-edbf42e46eb7
* Improve the way 005 ISUPPORT is sent to users when they connect, cache it in ↵Gravatar brain2006-12-131-0/+1
| | | | | | 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
* New clone counting mechanism (this isnt tested yet)Gravatar brain2006-12-121-0/+18
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5967 e03df62e-2008-0410-955e-edbf42e46eb7
* Add InspIRCd::UseInterface and InspIRCd::DoneWithInterface, and also ↵Gravatar brain2006-12-101-0/+11
| | | | | | | | | | | | 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
* Added InspIRCd::GetTimeDelta() - previously m_alltime was using a hack to ↵Gravatar special2006-11-291-0/+5
| | | | | | get the delta, which wasn't always reliable git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5827 e03df62e-2008-0410-955e-edbf42e46eb7
* Grammar nazi in the hizouseGravatar brain2006-11-121-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5729 e03df62e-2008-0410-955e-edbf42e46eb7
* When some (but not all) of the ports fail to bind on startup, give the user ↵Gravatar brain2006-11-121-2/+9
| | | | | | | | | 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
* Add fix for patch #166 (this is a reasonably big one)Gravatar brain2006-11-101-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5679 e03df62e-2008-0410-955e-edbf42e46eb7
* Move peaveydk to core developers, jamie to contributors as he appears to be ↵Gravatar w00t2006-11-091-1/+1
| | | | | | AWOL. Well done, peavey. :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5664 e03df62e-2008-0410-955e-edbf42e46eb7
* Change message to indicate that the count only includes client portsGravatar brain2006-11-051-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5654 e03df62e-2008-0410-955e-edbf42e46eb7
* Added time syncing! This is fairly simple - servers exchange timestamps and ↵Gravatar special2006-11-051-1/+12
| | | | | | 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
* As requested by satmd, inspircd will now run with no client ports configuredGravatar brain2006-11-041-2/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5643 e03df62e-2008-0410-955e-edbf42e46eb7
* This is tidier, we dont need a seperate bool and intGravatar brain2006-11-021-4/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5628 e03df62e-2008-0410-955e-edbf42e46eb7