summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Someone left the colon off the 'end of list' numeric in u_listmode.h. I dont ↵Gravatar brain2007-01-141-1/+1
| | | | | | know what clients this might break git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6328 e03df62e-2008-0410-955e-edbf42e46eb7
* Added interface 'ChannelBanList' that these two modules implement. Send a ↵Gravatar brain2007-01-141-0/+15
| | | | | | | | | | | request class ListModeRequest to the module to check if a user is matched on a channel: const char* ismatched = ListModeRequest(this, targetmodule, someuser, somechan).Send(); ismatched will be NULL if theyre not matched by the modules list, or will contain the mask if they are matched. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6325 e03df62e-2008-0410-955e-edbf42e46eb7
* g++ is picky about default params with overloadingGravatar brain2007-01-141-2/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6324 e03df62e-2008-0410-955e-edbf42e46eb7
* Add alias:matchcase config setting (per-alias, determines wether to match ↵Gravatar brain2007-01-141-3/+2
| | | | | | case on format string) and ability for case sensitive match() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6319 e03df62e-2008-0410-955e-edbf42e46eb7
* Update inline documentation for DelFd() so the doxygen docs will be correct.Gravatar peavey2007-01-121-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6300 e03df62e-2008-0410-955e-edbf42e46eb7
* Quick tweak before work, set the default force=false in these (im not keen ↵Gravatar brain2007-01-113-3/+3
| | | | | | | | | on 'force' at all, its major ugly hax, but *shrug* :( how does it even know we're using epoll or kqueue etc???) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6298 e03df62e-2008-0410-955e-edbf42e46eb7
* pgsql should now work thx to added posibility to force a fd out of the ↵Gravatar peavey2007-01-114-5/+5
| | | | | | socketengine. This should only be used as a *last resort* when dealing with 3rd party libs that invalidates a file descriptor beyond your control. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6295 e03df62e-2008-0410-955e-edbf42e46eb7
* Comment on a lot of recently added stuff that wasnt properly documented ↵Gravatar brain2007-01-094-8/+190
| | | | | | (until now) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6284 e03df62e-2008-0410-955e-edbf42e46eb7
* Someone forgot to make correct deps for timer.h. Fixed.Gravatar brain2007-01-091-0/+5
| | | | | | | Added InspTimer::CancelRepeat(), we can use this within the Tick method to cancel a repeat so that the timer is deleted after the tick, as DelTimer isnt safe within the Tick method git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6283 e03df62e-2008-0410-955e-edbf42e46eb7
* Have ConvNumeric correctly convert 0 to 0 instead of an empty string.Gravatar peavey2007-01-091-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6278 e03df62e-2008-0410-955e-edbf42e46eb7
* Add specialization for ConvToStr on a single char, return std::string(in,1) :pGravatar brain2007-01-091-0/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6276 e03df62e-2008-0410-955e-edbf42e46eb7
* This is better, and proved workingGravatar brain2007-01-091-10/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6275 e03df62e-2008-0410-955e-edbf42e46eb7
* This is a bit betterGravatar brain2007-01-091-3/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6274 e03df62e-2008-0410-955e-edbf42e46eb7
* Overloaded template classes for mucho improved ConvToStr speedGravatar brain2007-01-091-2/+33
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6273 e03df62e-2008-0410-955e-edbf42e46eb7
* Cache channel max bans value to save an O(n) loop of match() on every ban ↵Gravatar brain2007-01-092-0/+13
| | | | | | (etc) add git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6267 e03df62e-2008-0410-955e-edbf42e46eb7
* cmd_whowas now uses the shiny new repeating timer.Gravatar peavey2007-01-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6266 e03df62e-2008-0410-955e-edbf42e46eb7
* Add repeating timers, and make an hourly prune of the dns cache, otherwise a ↵Gravatar brain2007-01-082-2/+27
| | | | | | cache entry might not be cleared until a user with that ip comes back! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6264 e03df62e-2008-0410-955e-edbf42e46eb7
* Move whowas containers into whowas class to avoid all cpp files including ↵Gravatar peavey2007-01-081-32/+35
| | | | | | cmd_whowas.h to try and destroy the containers on fork exit.\nThis would cause a segfault when forking due to the containers destroy being called multiple times, but still allow the server to fork it's child and leave the server running. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6260 e03df62e-2008-0410-955e-edbf42e46eb7
* Add /CLEARCACHE, oper only command which completely purges the DNS cache -- ↵Gravatar brain2007-01-082-0/+35
| | | | | | useful if you just want to cut down on ram use at any point. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6259 e03df62e-2008-0410-955e-edbf42e46eb7
* Update a comment, and touch a header just to make people rebuild stuff >:)Gravatar brain2007-01-071-1/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6256 e03df62e-2008-0410-955e-edbf42e46eb7
* Document dns caching, add a "bool cached" to OnLookupComplete method in ↵Gravatar brain2007-01-073-3/+23
| | | | | | Resolver, and and add " -- cached" to end of 'looking up your host' string if their result is a cached result git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6254 e03df62e-2008-0410-955e-edbf42e46eb7
* And its all done and working!Gravatar brain2007-01-071-1/+1
| | | | | | | (note, we still need to test cache expiry) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6253 e03df62e-2008-0410-955e-edbf42e46eb7
* DNS caching stuff (almost done)Gravatar brain2007-01-072-2/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6252 e03df62e-2008-0410-955e-edbf42e46eb7
* DNS Stuff - this wont work right yet, it will soon (tm)Gravatar brain2007-01-072-5/+41
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6250 e03df62e-2008-0410-955e-edbf42e46eb7
* Move all /WHOWAS related out of core and into cmd_whowas.Gravatar peavey2007-01-073-73/+90
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6249 e03df62e-2008-0410-955e-edbf42e46eb7
* Add TTL stuff to dns system (pass it to inherited objects)Gravatar brain2007-01-072-3/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6247 e03df62e-2008-0410-955e-edbf42e46eb7
* add internal cmdhandler that will make it easy to move stuff out of core and ↵Gravatar peavey2007-01-071-0/+5
| | | | | | into a reloadable command. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6241 e03df62e-2008-0410-955e-edbf42e46eb7
* Massive speedups for applying and checking perm xlines - matches_*line() now ↵Gravatar brain2007-01-041-11/+17
| | | | | | | | | has a permonly optional param, and apply_lines can be passed an APPLY_LOCAL_ONLY. Also, improve speed of config reading stuff when reading in the lines git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6223 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix lusers breakage introduced by latest set of optimizationsGravatar brain2007-01-032-0/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6219 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix to allow for OnRehash to know what user initiated the rehashGravatar brain2007-01-011-2/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6207 e03df62e-2008-0410-955e-edbf42e46eb7
* Add port type identifiersGravatar brain2007-01-011-0/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6196 e03df62e-2008-0410-955e-edbf42e46eb7
* Add missing feature: /rehash reinitializes dns subsytem (and can handle ↵Gravatar brain2006-12-311-0/+5
| | | | | | changed addresses) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6193 e03df62e-2008-0410-955e-edbf42e46eb7
* Cached GetFullRealHost etc.Gravatar brain2006-12-301-0/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6179 e03df62e-2008-0410-955e-edbf42e46eb7
* Properly document support for libhamstersGravatar brain2006-12-301-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6177 e03df62e-2008-0410-955e-edbf42e46eb7
* Add unregistered user counter, this may also fix the (minor) m_conn_lusers ↵Gravatar brain2006-12-301-0/+6
| | | | | | shows current connection as unregged git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6170 e03df62e-2008-0410-955e-edbf42e46eb7
* Change description for insp_aton since only a positive return means ↵Gravatar peavey2006-12-301-1/+6
| | | | | | convertion was a success. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6169 e03df62e-2008-0410-955e-edbf42e46eb7
* This doesnt need to be staticGravatar brain2006-12-291-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6164 e03df62e-2008-0410-955e-edbf42e46eb7
* Add counter system for umodes to get rid of some O(n)Gravatar brain2006-12-296-0/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6163 e03df62e-2008-0410-955e-edbf42e46eb7
* Add Template itoa to convert integer to char*Gravatar peavey2006-12-261-0/+19
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6119 e03df62e-2008-0410-955e-edbf42e46eb7
* Also add support for default values for ConfValueBool and ConfValueInteger ↵Gravatar peavey2006-12-262-5/+29
| | | | | | 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
* Add possibility to define default value for ConfValue in configreader and ↵Gravatar peavey2006-12-262-0/+11
| | | | | | ReadConf in modules. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6113 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix a bug in whowas that could desync list.Gravatar peavey2006-12-241-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6091 e03df62e-2008-0410-955e-edbf42e46eb7
* Add OnGarbageCollect methodGravatar brain2006-12-241-2/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6086 e03df62e-2008-0410-955e-edbf42e46eb7
* Hash rehashing changeGravatar brain2006-12-231-2/+8
| | | | 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-0/+2
| | | | | | 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-232-2/+50
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6077 e03df62e-2008-0410-955e-edbf42e46eb7
* Program termination (including SIGTERM) now calls InspIRCd::Cleanup() which ↵Gravatar brain2006-12-231-0/+6
| | | | | | | | | 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
* Unload as many modules as we can on restart, and close listenersGravatar brain2006-12-231-0/+3
| | | | 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-232-1/+21
| | | | | | | 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
* change userrec int timeout to time_t since it's a timestamp made of TIME + ↵Gravatar peavey2006-12-221-4/+4
| | | | | | users connection class timeout. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6066 e03df62e-2008-0410-955e-edbf42e46eb7