9684 Commits

Author SHA1 Message Date
danieldg
5374c16961 Make pkg-config failure error clearer
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11417 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-26 12:10:16 +00:00
danieldg
59d380cad4 Rebuild modeclasses.a when configure -update is run
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11416 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-18 00:33:03 +00:00
danieldg
5fc80b5ad4 Fix incorrect attempted inline of irc::sockets::sa_size
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11415 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-16 04:21:28 +00:00
danieldg
14db93e7cf Fix sockaddr length argument, BSD will complain if it doesn't exactly match the expected size
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11414 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-16 04:02:21 +00:00
danieldg
2f12c298e8 Fix ENCAP forwarding with multiword final parameter, noticed by Namegduf
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11413 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-15 23:57:31 +00:00
danieldg
4e5fe6922e Improve valdebug-unattended: increase timeout to 90 seconds, and generate/use suppresions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11412 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-14 21:12:16 +00:00
danieldg
720dcd6f0e Backport BufferedSocket::DoConnect rewrite to fix valgrind warning
Syscall param socketcall.connect(serv_addr..sin6_flowinfo) points to uninitialised byte(s)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11411 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-14 20:21:06 +00:00
danieldg
e5cb25bd13 These commands do not need to be VF_COMMON
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11410 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-14 05:12:44 +00:00
danieldg
abe0f102d7 Don't globally route SETNAME, the FNAME is sufficient. Fixes bug #875
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11409 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-14 05:07:02 +00:00
brain
2bb40c5b23 more fixes. inet_pton is now in error, this is because the windows 6.0 sdk defines it, we need some kind of ifdef or something around this to not define our own if we have the 6.0 SDK. Again i will check this if i have chance, otherwise... :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11407 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-12 16:34:23 +00:00
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