9684 Commits

Author SHA1 Message Date
danieldg
e988ac11a2 Fix CullList to not use O(n^2) version of vector clear
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11312 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-17 21:47:30 +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
0036e619c5 Remove CullList rate limiting to fix UID collisions on large networks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11310 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-17 13:55:20 +00:00
danieldg
1735fc95bb Fix memory leak on rehash: opertype used char* instead of std::string
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11309 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-17 13:55:14 +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
w00t
c6f1e7997d Bump to rc3 in preperation for release Real Soon (tm). Developers, please look at getting fixes for open bugs in ASAP.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11306 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-16 21:59:47 +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
w00t
072022961d Fix bug #826: setting +l 0 doesn't work in some cases. Just don't check for +l to an existing limit at all, as there isn't a lot of point to it.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11302 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-16 15:32:16 +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
special
52149814e3 Re-add the default case to commandline parsing (if it happens, it's better to know than to do nothing) and fix a small typo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11299 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-09 09:22:27 +00:00
brain
a17a8a0716 The correct way to detect unknown parameter for getopt_long_only() is looking for '?' param, not \0.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11298 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-09 08:59:27 +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
w00t
9fa7a437cc Readd documentation that just managed to vanish into thin air...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11296 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-09 08:15:59 +00:00
special
08e23d6ba4 Fix the problem described in bug #827; an improper cast when parsing commandline parameters caused the ircd to not run at all on platforms with unsigned char (i.e. PPC). There may be other issues with unsigned char, testing and reports welcome.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11294 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-09 08:05:25 +00:00
danieldg
76d29d4d59 Example configuration updates from jdhore
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11293 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-08 21:11:53 +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
29ee8ab0ad Fix irc_char_traits::find to behave correctly when the character is not found. Bug #823, patch by Phoenix Fledgeling
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11291 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-07 08:34:34 +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
psychon
403fe8fd97 Remove the unused RESOLVER_NOTREADY define and fix the spelling of RESLOVER_FORCEUNLOAD
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11286 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-05 14:28:02 +00:00
dz
51f6fd1cf7 Reapply r11241: flush and close log filehandles properly when the log is closed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11285 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-04 18:02:52 +00:00
dz
b87d2bf8dc Don't do anything with logging in the handler for /REHASH.
What was here would close all of the logs and attempt to reopen only the startup log, resulting in a crash if the startup log had been properly closed already.
Logs are already properly restarted when the config thread exits.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11284 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-04 18:02:51 +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
special
27c1548bca m_timedbans was incorrectly listed as oper-only in the example config. Found by Taros.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11279 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-01 23:43:00 +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
danieldg
fb76ed9be4 Fix incorrect double-negative in help text
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11273 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-01 15:09:27 +00:00
danieldg
ee72c3d6e3 Use binary comparison of IP addresses when checking reverse/forward DNS match; fixes bug #814
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11272 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-01 14:24:02 +00:00
dz
0a3c36b49e send ERR_NEEDMOREPARAMS if an empty parameter is given to STATS ('STATS :'), fixes bug #813 reported by Kazuma.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11271 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-29 16:01:53 +00:00
dz
408d516f78 Make the message when reloading a command fails more accurate, and fix reloading commands after a failed reload. Fixes bug #776 reported by Taros, and bug #785.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11270 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-27 22:32:38 +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
peavey
a3d9b31cb6 Make this compile
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11264 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-25 19:22:41 +00:00
danieldg
c6e3bd2b57 Fix some win32 compile errors, thanks for error output therock247uk
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11263 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-25 17:57:55 +00:00
danieldg
3debc17c51 Fix a compilation error
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11262 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-25 16:31:39 +00:00
brain
1db1a40c09 more of the fix but it still doesnt build. I know we said this might be unstable, but when writing *windows* code can you all please make sure it BUILDS on windows???
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11261 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-25 11:39:57 +00:00