5164 Commits

Author SHA1 Message Date
brain
fe46f3c228 Document dns caching, add a "bool cached" to OnLookupComplete method in 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
2007-01-07 22:01:00 +00:00
brain
2a5e6d416f And its all done and working!
(note, we still need to test cache expiry)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6253 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 21:37:06 +00:00
brain
f1ca6c6d71 DNS caching stuff (almost done)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6252 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 21:35:25 +00:00
peavey
8d948ff975 Tidy up old MaintainWhoWas.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6251 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 21:17:41 +00:00
brain
dac672cf30 DNS Stuff - this wont work right yet, it will soon (tm)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6250 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 21:16:03 +00:00
peavey
6b9eaeba41 Move all /WHOWAS related out of core and into cmd_whowas.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6249 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 21:14:17 +00:00
brain
f9eb4c966f Fix m_testcommand which tries to use an undefined pointer as ServerInstance
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6248 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 20:08:49 +00:00
brain
9db7f13b0c Add TTL stuff to dns system (pass it to inherited objects)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6247 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 20:01:11 +00:00
brain
2458d30566 Rename all the classes in m_httpd to be HttpServer etc,
Make a copy of the request in the http client so we dont need to leave pointers hanging around in the requestor module


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6246 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 17:27:11 +00:00
brain
34f4ee851c Make this use the newer format of class Request (this module was still using the old cast-data-to-char*-and-use-getdata-method)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6245 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 17:16:30 +00:00
peavey
bc341bfc39 Make this compile.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6244 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 16:47:28 +00:00
special
e513c4c3f9 Added m_http_client - this is incomplete and won't work at all, don't try to use it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6243 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 03:50:18 +00:00
brain
dab57ed68a Adding CIDR support to m_check: as easy as adding a 'true' to match()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6242 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 03:04:24 +00:00
peavey
b2f3ac1161 add internal cmdhandler that will make it easy to move stuff out of core and into a reloadable command.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6241 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 01:24:44 +00:00
brain
85bb016bd1 Whoops
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6240 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06 23:15:54 +00:00
brain
26f84e25c4 Dont try and show idle time of remote opers in STATS P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6239 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06 23:08:59 +00:00
peavey
41f946c9d0 Fix remote opers not being added to all_opers.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6238 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06 22:57:40 +00:00
w00t
95c54749e1 Fix modecount on remote NICK
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6237 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06 21:24:57 +00:00
w00t
7fe2038b85 Fix SVSJOIN desync (nothing too severe, don't panic) noticed on CS, found by me/Brain :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6236 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06 18:44:39 +00:00
brain
9596cc3ebf Extra check so that we dont get -O-s when doing:
MODE #chan +Osnt
MODE #chan -O+n-s
(the +n would get dropped, but the - and the s get put in the mode sequence)
To fix, we store the last *successful* state change, as well as the last attempted state change.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6235 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06 17:20:45 +00:00
brain
7ab25fcf47 Fix for bug #186 reported by peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6234 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06 17:10:36 +00:00
w00t
a9f8076ae8 Fix minor NICK / modes issue that goes against our public spec, and crashes denora when introducing clients from a remote server
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6233 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06 16:45:00 +00:00
brain
02ccf82812 Fix desync with halfop and voice when opped (this happens because we were ORing the wrong value in chanrec::ForceChan)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6232 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06 16:15:35 +00:00
brain
7e9d08ec1c *slaps self* for not test compiling
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6231 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06 15:39:05 +00:00
brain
8bde55fbd4 Fix crash when unloading ssl module on shutdown -- there are no port objects 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
2007-01-06 15:35:05 +00:00
brain
5ab9ec7ecf Try this AnMaster
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6229 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06 15:28:54 +00:00
brain
cd73452f53 Fix oper count, we cant decrement ModeCount('o') from the userrec destructor as its already been removed earlier
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6228 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06 15:24:50 +00:00
brain
63b08e012f Repeat after me class, deleting values that arent newed isnt good for your health
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6227 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-06 15:14:04 +00:00
brain
1fd5b85339 Run ./configure -modupdate to fix "make install" error. INSTMODE doesnt seem to be inherited by src/modules/Makefile unless its passed in MAKEARGS
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6226 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-04 23:54:41 +00:00
brain
6c4d15a3a4 Merge buildsystem tweaks from darix:
$ patch <inspircd-1.1b8_build_system.patch 
$ patch <inspircd-1.1b8_mod_permissions.patch 
Thanks :-)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6225 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-04 21:32:53 +00:00
brain
79e7e58144 And fix this bit too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6224 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-04 18:54:13 +00:00
brain
ca6434e44f Massive speedups for applying and checking perm xlines - matches_*line() now 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
2007-01-04 18:53:31 +00:00
brain
5d93f3610f Beta 9 RELEASE .... *cough* just kidding, i mean beta 9 SVN track :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6222 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-03 22:37:01 +00:00
brain
6f53d8a76a 1.1.0+B8-Hamster!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6220 e03df62e-2008-0410-955e-edbf42e46eb7
v1.1.0b8
2007-01-03 21:58:39 +00:00
brain
2802a62272 Fix lusers breakage introduced by latest set of optimizations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6219 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-03 20:58:21 +00:00
brain
c218d8091f SirOlli gets credit for this fix, because he was the only one willing to work with us till we cracked it :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6218 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-03 18:03:08 +00:00
peavey
8bd2f571e9 Fix for crash in desync of whowas lists on rehash. Also less mem leakage on adding to whowas.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6217 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-02 20:22:23 +00:00
peavey
3863f71f8b Remove a TODO comment. Also added support for <database:port> option since r6213 so we can now connect to other ports than the standard mysql 3306 port.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6216 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-02 05:55:28 +00:00
peavey
528c788699 m_mysql can now do REHASH proper. Detects any changes made to config and loads/removes as needed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6215 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-02 05:51:05 +00:00
peavey
420787dcab Fix: If sql user and pass matched, but not operclass or host, conf based command would NOT be called and request would die quietly without notifying the user or send SNOtice of failed attempt.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6214 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-02 05:15:34 +00:00
peavey
62dc4e40b6 Also use SQLhost for host config.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6213 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-02 04:33:37 +00:00
peavey
bb0e1ee1eb Use SQLhost from m_sqlv2.h and tidyup some code. Plus throw less module exceptions and warn instead.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6212 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-02 03:04:03 +00:00
peavey
fb2e4497b5 Add class SQLhost that represents a <database> config line.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6211 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-02 02:59:25 +00:00
brain
986c79d2bf Update cloak keys example to use hex definition of the right length
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6210 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-02 00:40:51 +00:00
brain
3311f35e78 Add support for suffixes K, M, G (kilo, mega, gigabyte) and prefix 0x (hex)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6209 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-02 00:38:45 +00:00
special
fd89322179 Made 'make modclean' and 'make distclean' clean out the default lib/ install directory
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6208 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-01 23:08:13 +00:00
brain
42d5b9571e Fix to allow for OnRehash to know what user initiated the rehash
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6207 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-01 20:53:20 +00:00
brain
8a0a8ce160 Make sure that if an oper opers up and has an swhois in their opertype or oper tag, the swhois is sent out as metadata
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6206 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-01 20:00:46 +00:00
brain
963af328e2 This should fix it on two fronts: missing Implements() value, and OnWhois doesnt work for remote, so instead we hook OnWhoisLine
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6205 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-01 19:50:20 +00:00
brain
4679e462a7 This is it, i think
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6204 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-01 19:44:12 +00:00