9474 Commits

Author SHA1 Message Date
brain
48045988a4 This file *BROKEN AGAIN* in windows builds (VC9) - uint_16t and uint_32t do not exist in windows visual studio 2008! I will fix this at some later date unless someone beats me to it, as i still have no access to a reasonable PC.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11406 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-12 16:27:11 +00:00
danieldg
6b13769673 Makefile updates: clean up some installation assumptions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11405 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-07 02:58:07 +00:00
danieldg
885d37630e Allow SSL fingerprint-based server authentication
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11404 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-07 02:57:54 +00:00
w00t
193acaa853 Don't display locally bound SSL ports in SSL= (for hidden services and such)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11403 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-06 20:56:41 +00:00
danieldg
79283c8393 Makefile updates: Add "make help" and "make M=m_modname" to build an individual module
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11402 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-06 00:29:19 +00:00
danieldg
021c8e984b Add daniel's third-party module repository
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11401 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-05 00:28:17 +00:00
danieldg
746f63b2fe Use pkg-config to search for gnutls rather than the now-removed libgnutls-config
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11400 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-03 04:05:58 +00:00
danieldg
20002aa049 Change m_override to send snomasks globally
This uses "G" for both local and global; "g" is already taken by globops.
Fixes bug #860.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11399 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-02 02:43:36 +00:00
danieldg
23b2fe9510 Ignore and remove {BSD,GNU}makefile
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11398 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-01 17:08:53 +00:00
danieldg
828011aeaf Makefile updates: Fix BSD make conditionals
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11397 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-01 14:25:23 +00:00
danieldg
ad13d2293a Makefile updates: Allow run-cc wrapper to be disabled by "make V=1"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11396 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-01 01:26:23 +00:00
danieldg
3954761f11 Makefile updates: clean up command lines
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11395 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-01 01:26:15 +00:00
danieldg
07483d2fec This time it's actually compile tested
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11394 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-01 00:47:56 +00:00
danieldg
355ffd23e2 OK, it's more useful if this compiles...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11393 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-01 00:27:50 +00:00
danieldg
eba6c0fb91 Fix unsafe iteration pattern in m_timedbans - vector::erase invalidates all iterators following the elements to be erased.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11392 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-01 00:25:32 +00:00
danieldg
bc56f3dc97 Makefile updates: remove MAKEPROG/MAKEORDER
Also update the output on "make debug" to look better and avoid
interleaving header output on a parallel make.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11391 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-30 15:31:53 +00:00
danieldg
fed2216d99 Remove the ServerConfig::DirValid check that breaks symlinks
This was included as a security check to prevent symlink attacks,
but this is no longer useful; anyone who can exploit the attack now
can just modify the ircd itself.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11390 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-25 22:50:49 +00:00
danieldg
52e139da19 Make timestamp output in /CHECK consistent
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11389 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-24 16:05:47 +00:00
danieldg
0da6b3a13d OnRehash changes: split to multiple hooks to clarify use and prevent explosion of rehashes on a /REHASH *
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11388 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-24 02:53:45 +00:00
danieldg
5f309503fa m_dnsbl: Add default duration and error message on invalid duration
Before, this caused DNSBL hits to take no action, as the zlines expired
before being applied. The default duration of 60 seconds exists only to
make the bans work; a longer duration is recommended to reduce log noise.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11387 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-23 13:40:52 +00:00
danieldg
fcb5163466 Fix UID collision on reload of m_spanningtree.so
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11386 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-14 23:27:47 +00:00
special
bc9352391f Fix some incorrect STL iterations (using < end() instead of != end())
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11385 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-14 01:12:20 +00:00
danieldg
214c62fd77 Fix r11381 checking HideWhoisServer incorrectly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11384 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-14 00:03:00 +00:00
danieldg
01bc8468e3 Fix incomple memset() in irc::sockets::aptosa, add support for converting empty addresses
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11383 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 23:43:27 +00:00
danieldg
5d6dcb9919 Make User::ServerInstance public so that FakeUser can access it. There is no reason to make this private, really
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11382 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 20:57:49 +00:00
danieldg
98cb5d73ee Hide server sources if HideWhoisServer is set, noticed by Brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11381 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 17:43:35 +00:00
danieldg
46ecb92528 Show correct server source to users on FTOPIC and FMODE
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11380 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 17:04:25 +00:00
danieldg
97c0e6b4c4 Use Utils->ServerUser instead of ServerInstance->FakeClient in m_spanningtree
This makes it possible to determine which server initiated a mode change,
instead of having only a flag saying that some server did.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11379 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 17:04:17 +00:00
danieldg
a889336d19 Make the previous patches actually work
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11378 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 05:28:00 +00:00
danieldg
ddc77036f6 Replace loopCall detection in OnUserKick with a check for the m_spanningtree fake user
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11377 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 05:27:53 +00:00
danieldg
23a98c8fe1 Use a FakeUser source for server-sourced commands in spanningtree
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11376 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 05:27:46 +00:00
danieldg
6dd331262a Create subclass of User for FakeClient, to allow for use as command source
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11375 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 05:27:39 +00:00
aquanight
d4ee4c5aa4 Fix for some modules sending global snotices at each individual server in a server path.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11374 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 03:04:03 +00:00
danieldg
15e6efe1ae Translate UIDs properly in m_sakick
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11373 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 02:49:05 +00:00
special
3372b1ac0d Revert some files accidentally committed in r11371. I'm apparently doing a very bad job of multitasking.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11372 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 02:29:32 +00:00
special
78ec14490c Fix an issue in r11370 spotted by danieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11371 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 02:18:33 +00:00
special
6075913736 Fix m_sakick to properly send local/global snomasks like other modules, instead of repeating a global snomask once per linked server. Found by SnoFox
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11370 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13 01:23:52 +00:00
danieldg
b2159a9e4f Remove handshake timer on server sockets that die before completing handshake
This fixes some very subtle and hard-to-trace bugs that are triggered when a
file descriptor and memory address of an EventHandler* are reused after being
deallocated. Impossible to trigger in valgrind; has been seen in live networks.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11369 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-07 14:51:10 +00:00
danieldg
999febbac6 Compile fix: openssl does not have an ISSL_CLOSING state, unlike gnutls
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11368 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-07 04:33:43 +00:00
danieldg
373db450cc Fix ListenSocketBase::GetPort() returning incorrect value on ports not bound to a specific address
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11367 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-07 04:24:17 +00:00
special
955b3ef59b Fix two compile errors found by Shawn
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11366 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-06 22:59:05 +00:00
danieldg
4c3329a0ce Set errno in openssl when handshake fails
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11365 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-06 22:46:56 +00:00
w00t
71f7e47bcd Remove FindDescriptor wrapper for GetRef, it doesn't do anything useful and in fact is a bit harmful in some ways as we've seen..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11364 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-06 22:27:51 +00:00
danieldg
5a3d1bd460 Set errno properly on GnuTLS sessions that die during the SSL handshake
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11363 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-06 22:26:11 +00:00
special
afdc66c2ce m_filter: Do not attempt to filter messages from remote users
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11362 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-05 23:43:40 +00:00
danieldg
fa3e1d5d4d Canonicalize bind addresses when creating listen sockets
This fixes /stats p output for SSL ports not working if a non-canonical address
is used in the configuration (IPv6 with :: or mixed hexadecimal case).
This also cleans up some now-useless sockaddr[2] allocations.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11361 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-04 23:24:00 +00:00
w00t
486a4bb77c Fix unnecessary heap allocation on rehash: stack allocated ConfigReader is fine.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11359 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-04 20:27:54 +00:00
w00t
8feb215c20 Copypastafail.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11358 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-03 12:16:10 +00:00
w00t
97b48b5e01 Some general tidyup in here (also some possible desync fixes, check IS_LOCAL..), also check that the target channel exists and sender is opped before allowing +b redirects from a remote sender. Fixes bug #851, reported by SnoFox.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11357 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-03 12:15:19 +00:00
w00t
c0d37f4557 (for now), comment out opercount from individual servers in XML stats. This can be addressed in a future release. Bandaid fix for bug #846, reported by SnoFox.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11356 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-03 12:06:33 +00:00