peavey
7a9d31a463
cmd_whowas now uses the shiny new repeating timer.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6266 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-08 19:58:16 +00:00
brain
1f83b592ea
Tweaks to mode parser
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6265 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-08 19:13:48 +00:00
brain
2fe4636fa4
Add repeating timers, and make an hourly prune of the dns cache, otherwise a 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
2007-01-08 18:42:13 +00:00
brain
a3bda51ef1
user->WriteServ( "371 %s :. o O ( The Inspire Internet Relay Chat Server ) O o .", user->nick);
...
user->WriteServ( "371 %s : ( Putting the ricer into ircer since 2007 )", user->nick);
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6263 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-08 17:07:08 +00:00
special
6b16b35520
Someone forgot to add clearcache to the makefile install (thanks AnMaster)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6262 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-08 10:37:57 +00:00
peavey
d85fae1a65
getpidfile was not working at all. Fix it to work as intended.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6261 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-08 04:13:23 +00:00
peavey
9f13269062
Move whowas containers into whowas class to avoid all cpp files including 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
2007-01-08 04:07:04 +00:00
brain
bf3acfa61d
Add /CLEARCACHE, oper only command which completely purges the DNS cache -- 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
2007-01-08 00:18:52 +00:00
peavey
2bd5a5b5a2
Now even less leakage on add.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6258 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-08 00:10:19 +00:00
brain
4b75bac97e
Oh, this tweak is for w00t -- rehash will remove expired items from the dns cache
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6257 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-08 00:05:55 +00:00
brain
e82913ed68
Update a comment, and touch a header just to make people rebuild stuff >:)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6256 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 22:36:42 +00:00
brain
adee2d71f5
If the result is cached, dont bother waiting for the dns timeout, release them at the next timer tick if all modules are satisfied
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6255 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07 22:11:18 +00:00
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