7281 Commits

Author SHA1 Message Date
w00t
455b5993eb m_clones: Only show the number of clones and IP for each entry over the limit. Showing nick+ident+host matches is really not that useful. Opers can use /check on the IP to get the information in a more beneficial way.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8613 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-02 15:04:33 +00:00
w00t
94fd751561 Remove an unneeded forward declaration and typedef
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8612 e03df62e-2008-0410-955e-edbf42e46eb7
2007-12-30 13:49:43 +00:00
brain
dec1d4eba3 The mysql worker thread only sleeps 50 nanosecs between cycles, this is not enough to prevent it chomping on the CPU on most machines.
Increase to 1000, fixes bugs noticed on forum by JulianD, thanks :)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8605 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-29 19:37:56 +00:00
brain
8163a01cbb Now fetches page. Not the page you ask for, but meh :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8604 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-18 11:02:13 +00:00
brain
9b2a5837b1 Test framework connects now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8603 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-18 10:46:59 +00:00
brain
85ea4dbed5 Half complete test framework
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8602 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-18 10:41:25 +00:00
brain
380852d1a7 First part of stuff for remote includes (this doesnt work yet)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8601 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-18 10:25:12 +00:00
w00t
12ec2bc108 It compiles; ship it.
(add some sort of working skeleton for BanCacheManager::RemoveEntries().)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8600 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-17 23:59:39 +00:00
w00t
409b55e442 Correctly do the second setup of the fake client (AFTER uid has been initialised)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8599 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-16 17:56:43 +00:00
w00t
9b78e25056 Minor change: Add + to FMODE on creation of a new channel. This makes all FMODE consistant, and also clarifies what's going on for authors of third party apps. It's just one character too, so not a big deal :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8598 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-16 12:47:41 +00:00
w00t
8bc8dc92e4 Add another BanCache stub. I'm not writing it yet as the storage of entries has not yet been finalised.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8595 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-15 15:59:05 +00:00
brain
8d278b5d9c Argh, i give up
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8594 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-12 01:33:13 +00:00
brain
c23f9303db More craq
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8593 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-12 00:57:05 +00:00
brain
44ff49b0b1 Remove craq
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8592 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-12 00:36:58 +00:00
brain
c68ed91549 NOTE: our stuff for parsing multiple dns replies for dnsbl with an 'A record reply' is broken.
We will fix this at some later date. It was breaking other stuff


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8591 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-12 00:35:19 +00:00
brain
bedbe6480d This works with multiple remote includes now except it hangs when an include is within an include
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8590 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 23:49:03 +00:00
brain
5252b3095f Currently crashes with multiple layers of include. don't use this yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8589 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 23:09:09 +00:00
brain
d41820f19f Fix some dodgy destructor stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8588 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 21:58:01 +00:00
brain
58450cb217 Make sure we dont leak ram after loading files
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8587 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 21:47:48 +00:00
brain
72afed308c Handle non-200 HTTP status codes as error
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8586 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 21:07:11 +00:00
brain
70f0fa058f IT WORKS!
In your face, everyone who sait it couldnt be modular!


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8585 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 20:59:00 +00:00
brain
f87291fa17 No crash, now we just have to find out why it wont connect
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8584 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 20:54:54 +00:00
brain
9b3f282196 Fixed all that, back to the crash we had before (yay?)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8583 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 20:52:21 +00:00
brain
8f0f9654f8 This fixed. Initialise dns at the end of pass 1 before loading first set of modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8582 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 20:35:54 +00:00
brain
ed94fb6c55 Tidyups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8581 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 20:26:36 +00:00
brain
06f15a7fd0 Ok, this works except for it wont resolve hosts before full startup. argh why?!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8580 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 20:23:30 +00:00
brain
4cfe4cbc62 Hmm
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8579 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 20:15:21 +00:00
brain
8bc6254a59 m_http_client is crashy. will fix.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8578 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 19:58:13 +00:00
brain
845a4d1e60 Really should add this.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8577 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 19:36:07 +00:00
brain
60a6385be4 Provide a facility for modules to flag a config file completed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8576 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 19:34:06 +00:00
brain
6408757295 More stuff incoming
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8575 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 19:24:30 +00:00
brain
621f93b72f More stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8574 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 19:21:19 +00:00
brain
81951dafc1 We need to initialize the user twice, and we need to initialize the uid AFTER the config is read
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8573 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 19:02:58 +00:00
brain
e525fb7b74 Take out some printf gunk
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8572 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 18:57:57 +00:00
brain
a004ad524f Report failure to load configs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8571 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 18:57:22 +00:00
brain
1a0357cc2c Add a counter for errored files
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8570 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 18:45:50 +00:00
brain
0e6f0d340b Whoops, make it pick up module-handled schemas correctly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8569 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 18:40:01 +00:00
brain
d1323ef03f This works properly now. Files in the file:// schema are loaded by the core.
Anything else will be loaded by a module, this isnt done yet. For remote includes to work,
your <module> tags for the remote includes modules must be in the base inspircd.conf file.
This is the only file gauranteed to be avaialble in pass 1 of the two pass config read.
At the end of pass 1, all files are opened/downloaded and placed into a map.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8568 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 18:27:25 +00:00
brain
461e4aef03 More stuff for this. Its starting to take shape a bit now, and is tidier than the craq i came up with before
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8567 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 18:11:42 +00:00
brain
05e88fcd54 Begin rethink on this. Warning, this WILL break your ircd if youre using trunk!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8566 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 17:53:57 +00:00
brain
5e1f2c1728 In prep for remote includes, configuration reading is now two-pass.
Note that theres an important part missing from here, there can be a NON-BLOCKING delay between the start of pass 2 and the files being available for download.
At this point, ServerConfig::Read() should probably return an ENOTREADY or such at which point it gets monitored for ready state. The socket engine is ready at this point
so we can poll the socket engine for it. In the case of startup, the socket engine blocks in a private loop, its no good booting the ircd till we have a complete config!


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8565 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 17:01:00 +00:00
brain
7eebbe7da1 Implement roadmap item: "userrec::HasPermission -> map of maps, for (even faster) access"
This is not a map of maps, but a single level map per oper, in non-opers this member is NULL.
Please note that this is not yet tested.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8564 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 15:44:43 +00:00
brain
7336f449eb Fix crashes from badly written safeiters
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8563 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 12:41:03 +00:00
brain
ba79ba9fc1 Make iterators safe in FOREACH_MOD etc macros, so that ModuleManager::Detach() wont screw up the iterator
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8562 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11 01:29:50 +00:00
brain
31aeffb749 Fix owines crashes here too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8561 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-10 20:34:30 +00:00
brain
c68005649f Fix crashes found by owine (usually on startup)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8559 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-10 20:04:39 +00:00
brain
b9ec32f3e1 Second test commit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8557 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-10 17:32:10 +00:00
brain
768dd5a916 Test commit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8556 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-10 17:28:05 +00:00
brain
abc959a04d m_spy no longer implements SPYNAMES, instead it overrides normal NAMES on the event that: (1) you are an oper and (2) you are not actually ON the channel.
This way it will not break m_auditorium, m_delayjoin etc, however it will work properly with mircs annoying assumptions in its channel list


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8555 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-10 16:19:46 +00:00
brain
d36107cfe9 SPYLIST is no longer required in 1.2, remove
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8554 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-10 16:07:07 +00:00