4299 Commits

Author SHA1 Message Date
danieldg
8bcd42704b Normalize IPv6 addresses when producing SSL port list, fixes bug #853
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11337 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-29 03:21:22 +00:00
danieldg
d2a71fd344 Overloading SetMode seems to cause the compiler to interpret "" as a bool and not a string. Fixes bug #849
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11335 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-29 02:43:16 +00:00
danieldg
80b24fd2d3 Remove sending +q from OnPostJoin, fixes bug #847. See removed comment for why it existed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11333 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-27 04:42:04 +00:00
danieldg
1ec635790f Correct 005 output of m_ssl_gnutls when used for STARTTLS with no client SSL ports configured
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11332 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-26 20:48:13 +00:00
danieldg
8a32981609 Enable lag-check pings on active servers - if bandwidth waste is an issue, there should be an option to disable lag pings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11331 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-26 20:48:05 +00:00
danieldg
2f9c8c6436 Remove lag reporting in /map from servers that do not yet have a valid value; <1ms is misleading.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11330 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-26 20:47:57 +00:00
peavey
15b51c2ecc rollback r11326, we're going to make vc9 the officially supported windows build methods since the few of us doing win dev can't keep up maintaining the others.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11327 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-23 22:21:35 +00:00
brain
c275233c7c Heres the beef so far
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11326 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-23 19:03:40 +00:00
danieldg
eed00fd454 Addendum to previous ping patch: NextPingTime was not being set at endburst, and servers without ENDBURST were no longer being detected.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11325 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-22 16:35:27 +00:00
danieldg
c15f083ba3 Fix PingFlag not being set correctly for servers whose burst takes longer than PingFreq
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11324 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-22 02:26:03 +00:00
danieldg
195b60fe90 Abort link early when mismatched modules are detected so that the error message is more useful
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11323 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-21 15:15:05 +00:00
danieldg
e10bc5d2eb Actually use irc::modestacker correctly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11322 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-20 22:12:40 +00:00
danieldg
828f256a9b Use loopCall to protect OnUserKick rather than the triggerevents hack
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11321 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-20 13:29:58 +00:00
danieldg
2d7ac3a99b Initialize loopCall on construction
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11320 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-19 15:59:16 +00:00
danieldg
520401ed4a Add loopCall to prevent double-broadcasting new X:lines
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11319 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-19 15:26:21 +00:00
danieldg
1f75c5c20a Send snotices when m_dnsbl adds an xline; fixes bug #837
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11318 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-19 15:26:14 +00:00
danieldg
8a5a800a87 Change a few more modules to send global a/A snotices
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11317 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-18 22:21:27 +00:00
danieldg
e0b6dfe98f Convert m_dnsbl to send globally routed snomasks. Fixes bug #836
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11315 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-18 19:51:31 +00:00
danieldg
00d3b7007e Don't send out UID for users that are quitting, because the QUIT won't be sent and they become a ghost
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11313 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-18 00:32:11 +00:00
danieldg
83c2e15a7d Fix realhost leak when users on different servers get +W notifications. Noticed by mooncup.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11311 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-17 21:10:06 +00:00
danieldg
fbd9bba660 Fix memory leak in m_filter rehash
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11308 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-17 13:55:07 +00:00
danieldg
2dfc384cde Fix SetModeParam to use std::string and handle edge cases.
Previously, changing the vaule of a mode could require 3 calls to SetMode and SetModeParam.
This also fixes memory leaks caused by the strdup() not always being paired with a free().

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11307 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-17 13:54:53 +00:00
peavey
de4259469e Addendum to r11303, fix for bug #833: use correct result for the type (bitmask/record), based on patch by Milliways, thanks.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11305 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-16 17:20:02 +00:00
w00t
929cd28544 Convert snomask 'A' into snomask 'a' for local announcements, add snomask 'A' for remote announcements.
Make SAMODE send a snotice to 'a' and remote to 'A' - fixes bug #822, reported by Taros
We really need a wrapper to use these, but, for now it's usable.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11304 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-16 15:51:05 +00:00
w00t
f2813657c8 Correctly announce dnsbl hits, fixes bug #833 reported by Milliways.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11303 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-16 15:40:23 +00:00
danieldg
03e74cdee9 Register the OnUserPreJoin hook, and check for null channel first
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11301 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-10 21:43:01 +00:00
danieldg
9660e71deb Move +O check out of OnCheckBan to change error message and avoid triggering restrictbanned
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11300 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-10 21:40:24 +00:00
w00t
014317c4d8 If you're going to add magical number hacks, please comment them appropriately to reduce future maintenence burden.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11297 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-09 08:16:00 +00:00
danieldg
200e06f78d Set topic timestamp on newly created channels to a dummy value to work around bug #739 without protocol changes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11292 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-08 00:59:17 +00:00
special
18ecd877f5 m_shun: Allow nick targets for removal as well, in the same format as addition
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11290 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-06 00:57:19 +00:00
peavey
06432980d9 Fix shun not applying if you add an IP mask for a user that has a host which resolves. Spotted by Ankit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11289 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-06 00:07:31 +00:00
peavey
acf783b83c Add support for nick targets like other xlines. Patch by Ankit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11288 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-06 00:07:30 +00:00
peavey
fcafba14c5 Weed out a few leftover server instances from before modules had ServerInstance. Patch by Ankit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11287 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-06 00:07:29 +00:00
w00t
dafb96f8a7 Use 'c' snomask instead of 'A' snomask for ldap auth failures, reported by drich.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11283 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-03 18:53:28 +00:00
peavey
3cea88d74c Textual fixes. Patch by Ankit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11282 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-03 18:25:25 +00:00
dz
72c6686ed9 Fix up logic in m_allowinvite: extban A prevents /invite in all cases; channel mode A or extban exception A allow /invite in all cases. Fixes bug #819 reported by Taros.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11281 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-02 22:47:01 +00:00
brain
ed961ced07 Add validation of parameters as a fix for bug #917, and add maxpara so that we don't need the : before the reason
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11278 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-01 21:59:47 +00:00
danieldg
8b01909f73 Fix ping server-skip logic from bug 792 fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11277 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-01 21:45:37 +00:00
danieldg
a03554f504 Correct fix for bug #815, IPv6 code needs to check for IPv4 sa_family and handle it properly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11276 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-01 20:46:44 +00:00
special
64184418d4 Partial revert of r11274 (m_ident binding, bug #815); the meaning of this segment of code was completely reversed and broke ident binding alltogether. This part of the code may need other changes to make a full fix to #815. Remember - we're in feature freeze. Try to keep things focused on fixing the bugs, not cleaning up and refactoring code.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11275 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-01 20:30:17 +00:00
danieldg
05c0944bc2 Correct bind address of ident requests on multihomed IPv6-capable servers.
Fixes bug #815, reported by Szymek.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11274 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-01 17:14:04 +00:00
dz
6e1f90b505 Report the filter type the user supplied instead of the pattern when reporting an invalid type in m_filter, fixes bug #802 spotted by Taros.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11269 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-27 22:09:30 +00:00
peavey
e19797a3fa Give pgsql some needed love. Dont use DNS, remove some unused hooks and its not possible to work over unix socket, simply dont define host, or start with a slash to define the socket yourself.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11268 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-27 20:42:04 +00:00
peavey
40747ee2ad Fix potential crash on uninitialised var
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11267 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-27 18:20:49 +00:00
w00t
01fac25f16 Don't use metadata in m_shun, this fixes problems with expiry reported by Taros in bug #772.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11266 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-27 14:14:47 +00:00
w00t
38d3217d4c Instead of emptying parameters on shunned PART, only empty the reason. Fixes bug #810, reported by Casey and others.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11265 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-27 12:49:57 +00:00
danieldg
f09f2e1930 Use LastParseParams in m_opermodes because mode paramaters like +s +* can be modified by the mode parser
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11258 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-25 01:22:34 +00:00
peavey
47a902e1f6 Make this compile.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11255 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-23 20:04:44 +00:00
danieldg
1e2f6a3820 Fix compile error due to mismerge
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11254 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-23 19:20:54 +00:00
danieldg
59dbcc1245 ThreadEngine: Allow interthread signaling without needing as many hacks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11251 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-23 18:48:51 +00:00