aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Crux! v1.1.0b7Gravatar brain2006-12-261-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6127 e03df62e-2008-0410-955e-edbf42e46eb7
* have configure detect SOMAXCONN and store it in a string define, SOMAXCONN_SGravatar brain2006-12-261-37/+37
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6126 e03df62e-2008-0410-955e-edbf42e46eb7
* Add defaults for a ton of config vars, fix indentation, and add MAXCLIENTS_S ↵Gravatar brain2006-12-261-57/+49
| | | | | | to avoid one of the itoa()'s git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6125 e03df62e-2008-0410-955e-edbf42e46eb7
* Change to use std::string::iterator rather than making a copy of the pointer ↵Gravatar brain2006-12-261-2/+1
| | | | | | and using .c_str() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6124 e03df62e-2008-0410-955e-edbf42e46eb7
* Just a little tweak so trigger values makes more sense.Gravatar peavey2006-12-261-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6123 e03df62e-2008-0410-955e-edbf42e46eb7
* Add support for config option for percent and minimum string length +P will ↵Gravatar peavey2006-12-261-10/+37
| | | | | | trigger on. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6121 e03df62e-2008-0410-955e-edbf42e46eb7
* Add some defaults to serverconfig, removing need to set them in validate ↵Gravatar peavey2006-12-261-17/+15
| | | | | | methods. Still more to do in multitags. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6120 e03df62e-2008-0410-955e-edbf42e46eb7
* Also add support for default values for ConfValueBool and ConfValueInteger ↵Gravatar peavey2006-12-262-10/+52
| | | | | | in configreader, and for ReadFlag and ReadInteger in modules. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6116 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup a few var inits for whowas and ircu style prefix.Gravatar peavey2006-12-261-4/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6114 e03df62e-2008-0410-955e-edbf42e46eb7
* Add possibility to define default value for ConfValue in configreader and ↵Gravatar peavey2006-12-262-43/+63
| | | | | | ReadConf in modules. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6113 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix m_httpd always crashing in destructor if no active Timeout.Gravatar peavey2006-12-251-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6112 e03df62e-2008-0410-955e-edbf42e46eb7
* Cosmetic fix to stats z output.Gravatar peavey2006-12-251-3/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6111 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix ISON with multiple lines of ISON response, canonize the responses to ↵Gravatar brain2006-12-241-6/+13
| | | | | | weed out dupes, because trillian's irc support blows donkeys git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6110 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix broken +G for AnMaster (thanks for pointing out the bug)Gravatar brain2006-12-241-19/+14
| | | | | | | | | Also: MAJOR speed increase for *any network that loads m_censor*! It seems that this was looping all the censor items (not attempting a replace though) for all channels and users, even those that WERE NOT +G! Fixed. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6109 e03df62e-2008-0410-955e-edbf42e46eb7
* Double whoopsGravatar brain2006-12-241-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6107 e03df62e-2008-0410-955e-edbf42e46eb7
* Whoops!Gravatar brain2006-12-241-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6106 e03df62e-2008-0410-955e-edbf42e46eb7
* SQLQuery operator% and operator, now support any data typeGravatar brain2006-12-241-4/+4
| | | | | | | (these are templated, and pass the type through ConvToStr()) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6105 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
* TidyupGravatar brain2006-12-241-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6103 e03df62e-2008-0410-955e-edbf42e46eb7
* Add new people to /infoGravatar brain2006-12-241-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6102 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
* Fix a bug in whowas that could desync list.Gravatar peavey2006-12-241-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6091 e03df62e-2008-0410-955e-edbf42e46eb7
* Add whowas usage to stats z.Gravatar peavey2006-12-241-2/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6090 e03df62e-2008-0410-955e-edbf42e46eb7
* Neither should thisGravatar brain2006-12-242-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6089 e03df62e-2008-0410-955e-edbf42e46eb7
* Relatively small typo fixGravatar brain2006-12-242-25/+38
| | | | 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
* Add OnGarbageCollect methodGravatar brain2006-12-242-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6086 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
* Fix loop when quitting multiple users (this is probably whats eating cpu)Gravatar brain2006-12-241-3/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6084 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
* We can't log in SocketEngine::DelFd(), because the fd we're removing might ↵Gravatar brain2006-12-233-12/+0
| | | | | | just be that of the logger! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6082 e03df62e-2008-0410-955e-edbf42e46eb7
* Crash on /rehash fixed (old code in here passed NULL, 0 as argc, argv, this ↵Gravatar brain2006-12-233-3/+5
| | | | | | 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-2323-193/+128
| | | | 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-232-1/+8
| | | | | | some reason) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6079 e03df62e-2008-0410-955e-edbf42e46eb7
* Dont sleep if there is a diedelay of 0Gravatar brain2006-12-231-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6078 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-237-21/+27
| | | | | | | | | 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-232-6/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6074 e03df62e-2008-0410-955e-edbf42e46eb7
* Cut down on debug on restartGravatar brain2006-12-232-4/+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-232-11/+31
| | | | | | | 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-232-0/+30
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6068 e03df62e-2008-0410-955e-edbf42e46eb7