]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
15 years agoHeres the beef so far
brain [Thu, 23 Apr 2009 19:03:40 +0000 (19:03 +0000)]
Heres the beef so far

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11326 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoAddendum to previous ping patch: NextPingTime was not being set at endburst, and...
danieldg [Wed, 22 Apr 2009 16:35:27 +0000 (16:35 +0000)]
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

15 years agoFix PingFlag not being set correctly for servers whose burst takes longer than PingFreq
danieldg [Wed, 22 Apr 2009 02:26:03 +0000 (02:26 +0000)]
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

15 years agoAbort link early when mismatched modules are detected so that the error message is...
danieldg [Tue, 21 Apr 2009 15:15:05 +0000 (15:15 +0000)]
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

15 years agoActually use irc::modestacker correctly
danieldg [Mon, 20 Apr 2009 22:12:40 +0000 (22:12 +0000)]
Actually use irc::modestacker correctly

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11322 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoUse loopCall to protect OnUserKick rather than the triggerevents hack
danieldg [Mon, 20 Apr 2009 13:29:58 +0000 (13:29 +0000)]
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

15 years agoInitialize loopCall on construction
danieldg [Sun, 19 Apr 2009 15:59:16 +0000 (15:59 +0000)]
Initialize loopCall on construction

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11320 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoAdd loopCall to prevent double-broadcasting new X:lines
danieldg [Sun, 19 Apr 2009 15:26:21 +0000 (15:26 +0000)]
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

15 years agoSend snotices when m_dnsbl adds an xline; fixes bug #837
danieldg [Sun, 19 Apr 2009 15:26:14 +0000 (15:26 +0000)]
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

15 years agoChange a few more modules to send global a/A snotices
danieldg [Sat, 18 Apr 2009 22:21:27 +0000 (22:21 +0000)]
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

15 years agoUse server source for RemoveMode, fixes bug #838
danieldg [Sat, 18 Apr 2009 21:34:35 +0000 (21:34 +0000)]
Use server source for RemoveMode, fixes bug #838

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11316 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoConvert m_dnsbl to send globally routed snomasks. Fixes bug #836
danieldg [Sat, 18 Apr 2009 19:51:31 +0000 (19:51 +0000)]
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

15 years agoAdd global-routing snomask functions
danieldg [Sat, 18 Apr 2009 19:51:24 +0000 (19:51 +0000)]
Add global-routing snomask functions

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11314 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoDon't send out UID for users that are quitting, because the QUIT won't be sent and...
danieldg [Sat, 18 Apr 2009 00:32:11 +0000 (00:32 +0000)]
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

15 years agoFix CullList to not use O(n^2) version of vector clear
danieldg [Fri, 17 Apr 2009 21:47:30 +0000 (21:47 +0000)]
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

15 years agoFix realhost leak when users on different servers get +W notifications. Noticed by...
danieldg [Fri, 17 Apr 2009 21:10:06 +0000 (21:10 +0000)]
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

15 years agoRemove CullList rate limiting to fix UID collisions on large networks
danieldg [Fri, 17 Apr 2009 13:55:20 +0000 (13:55 +0000)]
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

15 years agoFix memory leak on rehash: opertype used char* instead of std::string
danieldg [Fri, 17 Apr 2009 13:55:14 +0000 (13:55 +0000)]
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

15 years agoFix memory leak in m_filter rehash
danieldg [Fri, 17 Apr 2009 13:55:07 +0000 (13:55 +0000)]
Fix memory leak in m_filter rehash

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11308 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoFix SetModeParam to use std::string and handle edge cases.
danieldg [Fri, 17 Apr 2009 13:54:53 +0000 (13:54 +0000)]
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

15 years agoBump to rc3 in preperation for release Real Soon (tm). Developers, please look at...
w00t [Thu, 16 Apr 2009 21:59:47 +0000 (21:59 +0000)]
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

15 years agoAddendum to r11303, fix for bug #833: use correct result for the type (bitmask/record...
peavey [Thu, 16 Apr 2009 17:20:02 +0000 (17:20 +0000)]
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

15 years agoConvert snomask 'A' into snomask 'a' for local announcements, add snomask 'A' for...
w00t [Thu, 16 Apr 2009 15:51:05 +0000 (15:51 +0000)]
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

15 years agoCorrectly announce dnsbl hits, fixes bug #833 reported by Milliways.
w00t [Thu, 16 Apr 2009 15:40:23 +0000 (15:40 +0000)]
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

15 years agoFix bug #826: setting +l 0 doesn't work in some cases. Just don't check for +l to...
w00t [Thu, 16 Apr 2009 15:32:16 +0000 (15:32 +0000)]
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

15 years agoRegister the OnUserPreJoin hook, and check for null channel first
danieldg [Fri, 10 Apr 2009 21:43:01 +0000 (21:43 +0000)]
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

15 years agoMove +O check out of OnCheckBan to change error message and avoid triggering restrict...
danieldg [Fri, 10 Apr 2009 21:40:24 +0000 (21:40 +0000)]
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

15 years agoRe-add the default case to commandline parsing (if it happens, it's better to know...
special [Thu, 9 Apr 2009 09:22:27 +0000 (09:22 +0000)]
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

15 years agoThe correct way to detect unknown parameter for getopt_long_only() is looking for...
brain [Thu, 9 Apr 2009 08:59:27 +0000 (08:59 +0000)]
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

15 years agoIf you're going to add magical number hacks, please comment them appropriately to...
w00t [Thu, 9 Apr 2009 08:16:00 +0000 (08:16 +0000)]
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

15 years agoReadd documentation that just managed to vanish into thin air...
w00t [Thu, 9 Apr 2009 08:15:59 +0000 (08:15 +0000)]
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

15 years agoFix the problem described in bug #827; an improper cast when parsing commandline...
special [Thu, 9 Apr 2009 08:05:25 +0000 (08:05 +0000)]
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

15 years agoExample configuration updates from jdhore
danieldg [Wed, 8 Apr 2009 21:11:53 +0000 (21:11 +0000)]
Example configuration updates from jdhore

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11293 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoSet topic timestamp on newly created channels to a dummy value to work around bug...
danieldg [Wed, 8 Apr 2009 00:59:17 +0000 (00:59 +0000)]
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

15 years agoFix irc_char_traits::find to behave correctly when the character is not found. Bug...
special [Tue, 7 Apr 2009 08:34:34 +0000 (08:34 +0000)]
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

15 years agom_shun: Allow nick targets for removal as well, in the same format as addition
special [Mon, 6 Apr 2009 00:57:19 +0000 (00:57 +0000)]
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

15 years agoFix shun not applying if you add an IP mask for a user that has a host which resolves...
peavey [Mon, 6 Apr 2009 00:07:31 +0000 (00:07 +0000)]
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

15 years agoAdd support for nick targets like other xlines. Patch by Ankit.
peavey [Mon, 6 Apr 2009 00:07:30 +0000 (00:07 +0000)]
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

15 years agoWeed out a few leftover server instances from before modules had ServerInstance....
peavey [Mon, 6 Apr 2009 00:07:29 +0000 (00:07 +0000)]
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

15 years agoRemove the unused RESOLVER_NOTREADY define and fix the spelling of RESLOVER_FORCEUNLOAD
psychon [Sun, 5 Apr 2009 14:28:02 +0000 (14:28 +0000)]
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

15 years agoReapply r11241: flush and close log filehandles properly when the log is closed.
dz [Sat, 4 Apr 2009 18:02:52 +0000 (18:02 +0000)]
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

15 years agoDon't do anything with logging in the handler for /REHASH.
dz [Sat, 4 Apr 2009 18:02:51 +0000 (18:02 +0000)]
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

15 years agoUse 'c' snomask instead of 'A' snomask for ldap auth failures, reported by drich.
w00t [Fri, 3 Apr 2009 18:53:28 +0000 (18:53 +0000)]
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

15 years agoTextual fixes. Patch by Ankit.
peavey [Fri, 3 Apr 2009 18:25:25 +0000 (18:25 +0000)]
Textual fixes. Patch by Ankit.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11282 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoFix up logic in m_allowinvite: extban A prevents /invite in all cases; channel mode...
dz [Thu, 2 Apr 2009 22:47:01 +0000 (22:47 +0000)]
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

15 years agom_timedbans was incorrectly listed as oper-only in the example config. Found by Taros.
special [Wed, 1 Apr 2009 23:43:00 +0000 (23:43 +0000)]
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

15 years agoAdd validation of parameters as a fix for bug #917, and add maxpara so that we don...
brain [Wed, 1 Apr 2009 21:59:47 +0000 (21:59 +0000)]
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

15 years agoFix ping server-skip logic from bug 792 fix
danieldg [Wed, 1 Apr 2009 21:45:37 +0000 (21:45 +0000)]
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

15 years agoCorrect fix for bug #815, IPv6 code needs to check for IPv4 sa_family and handle...
danieldg [Wed, 1 Apr 2009 20:46:44 +0000 (20:46 +0000)]
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

15 years agoPartial revert of r11274 (m_ident binding, bug #815); the meaning of this segment...
special [Wed, 1 Apr 2009 20:30:17 +0000 (20:30 +0000)]
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

15 years agoCorrect bind address of ident requests on multihomed IPv6-capable servers.
danieldg [Wed, 1 Apr 2009 17:14:04 +0000 (17:14 +0000)]
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

15 years agoFix incorrect double-negative in help text
danieldg [Wed, 1 Apr 2009 15:09:27 +0000 (15:09 +0000)]
Fix incorrect double-negative in help text

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11273 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoUse binary comparison of IP addresses when checking reverse/forward DNS match; fixes...
danieldg [Wed, 1 Apr 2009 14:24:02 +0000 (14:24 +0000)]
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

15 years agosend ERR_NEEDMOREPARAMS if an empty parameter is given to STATS ('STATS :'), fixes...
dz [Sun, 29 Mar 2009 16:01:53 +0000 (16:01 +0000)]
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

15 years agoMake the message when reloading a command fails more accurate, and fix reloading...
dz [Fri, 27 Mar 2009 22:32:38 +0000 (22:32 +0000)]
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

15 years agoReport the filter type the user supplied instead of the pattern when reporting an...
dz [Fri, 27 Mar 2009 22:09:30 +0000 (22:09 +0000)]
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

15 years agoGive pgsql some needed love. Dont use DNS, remove some unused hooks and its not possi...
peavey [Fri, 27 Mar 2009 20:42:04 +0000 (20:42 +0000)]
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

15 years agoFix potential crash on uninitialised var
peavey [Fri, 27 Mar 2009 18:20:49 +0000 (18:20 +0000)]
Fix potential crash on uninitialised var

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11267 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoDon't use metadata in m_shun, this fixes problems with expiry reported by Taros in...
w00t [Fri, 27 Mar 2009 14:14:47 +0000 (14:14 +0000)]
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

15 years agoInstead of emptying parameters on shunned PART, only empty the reason. Fixes bug...
w00t [Fri, 27 Mar 2009 12:49:57 +0000 (12:49 +0000)]
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

15 years agoMake this compile
peavey [Wed, 25 Mar 2009 19:22:41 +0000 (19:22 +0000)]
Make this compile

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11264 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoFix some win32 compile errors, thanks for error output therock247uk
danieldg [Wed, 25 Mar 2009 17:57:55 +0000 (17:57 +0000)]
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

15 years agoFix a compilation error
danieldg [Wed, 25 Mar 2009 16:31:39 +0000 (16:31 +0000)]
Fix a compilation error

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11262 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agomore of the fix but it still doesnt build. I know we said this might be unstable...
brain [Wed, 25 Mar 2009 11:39:57 +0000 (11:39 +0000)]
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

15 years agostart of fix for bug #805
brain [Wed, 25 Mar 2009 11:37:06 +0000 (11:37 +0000)]
start of fix for bug #805

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11260 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoFix headers for GCC 4.4: sprintf requires #include <cstdio>
danieldg [Wed, 25 Mar 2009 05:08:58 +0000 (05:08 +0000)]
Fix headers for GCC 4.4: sprintf requires #include <cstdio>

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11259 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoUse LastParseParams in m_opermodes because mode paramaters like +s +* can be modified...
danieldg [Wed, 25 Mar 2009 01:22:34 +0000 (01:22 +0000)]
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

15 years agoFix configure check for eventfd, HAS_EVENTFD is true/false not 1/0
danieldg [Mon, 23 Mar 2009 23:26:44 +0000 (23:26 +0000)]
Fix configure check for eventfd, HAS_EVENTFD is true/false not 1/0

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11257 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoConfigReaderThread updates: add done flag, remove main-thread-only mutex
danieldg [Mon, 23 Mar 2009 20:42:17 +0000 (20:42 +0000)]
ConfigReaderThread updates: add done flag, remove main-thread-only mutex

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11256 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoMake this compile.
peavey [Mon, 23 Mar 2009 20:04:44 +0000 (20:04 +0000)]
Make this compile.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11255 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoFix compile error due to mismerge
danieldg [Mon, 23 Mar 2009 19:20:54 +0000 (19:20 +0000)]
Fix compile error due to mismerge

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11254 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoAdd test-compile checks for epoll and eventfd
danieldg [Mon, 23 Mar 2009 18:49:06 +0000 (18:49 +0000)]
Add test-compile checks for epoll and eventfd

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11253 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agousleep() is no longer needed, and should not be needed in the future
danieldg [Mon, 23 Mar 2009 18:48:58 +0000 (18:48 +0000)]
usleep() is no longer needed, and should not be needed in the future

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11252 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoThreadEngine: Allow interthread signaling without needing as many hacks
danieldg [Mon, 23 Mar 2009 18:48:51 +0000 (18:48 +0000)]
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

15 years agoThreadEngine: remove MutexFactory, mutexes should be constructed using their constructor
danieldg [Mon, 23 Mar 2009 18:48:42 +0000 (18:48 +0000)]
ThreadEngine: remove MutexFactory, mutexes should be constructed using their constructor

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11250 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoThreadEngine: remove excessive mutex use on thread creation
danieldg [Mon, 23 Mar 2009 18:48:32 +0000 (18:48 +0000)]
ThreadEngine: remove excessive mutex use on thread creation

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11249 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoCheck IsBanned even when the ban list is empty, so that module hooks get called....
danieldg [Mon, 23 Mar 2009 03:32:01 +0000 (03:32 +0000)]
Check IsBanned even when the ban list is empty, so that module hooks get called. Fixes bug #800, reported by Taros

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11248 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoMerge simple fix from Ankit, thanks
brain [Sun, 22 Mar 2009 21:55:08 +0000 (21:55 +0000)]
Merge simple fix from Ankit, thanks

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11247 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoRevert r11241 due to crashiness when rehashing from IRC.
dz [Sun, 22 Mar 2009 20:34:24 +0000 (20:34 +0000)]
Revert r11241 due to crashiness when rehashing from IRC.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11246 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoNo need to show the censored word twice! :)
brain [Sun, 22 Mar 2009 18:47:22 +0000 (18:47 +0000)]
No need to show the censored word twice! :)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11245 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoApply ankit's patch for bug #780 with a minor tweak, re-introduce the 4-param 404...
brain [Sun, 22 Mar 2009 18:43:42 +0000 (18:43 +0000)]
Apply ankit's patch for bug #780 with a minor tweak, re-introduce the 4-param 404 numeric, this should not affect any clients but should make scripts and bots lives easier. Thanks ankit.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11244 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoNicer reworded numeric from ankit, thanks
brain [Sun, 22 Mar 2009 14:44:43 +0000 (14:44 +0000)]
Nicer reworded numeric from ankit, thanks

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11243 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoUpdate the list of <options:exemptchanops> supported modes. Fixes bug #798 reported...
dz [Sat, 21 Mar 2009 18:04:17 +0000 (18:04 +0000)]
Update the list of <options:exemptchanops> supported modes. Fixes bug #798 reported by Taros, patch by jdhore -- thanks!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11242 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoActually close file log FDs when we're done with them.
dz [Sat, 21 Mar 2009 17:40:35 +0000 (17:40 +0000)]
Actually close file log FDs when we're done with them.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11241 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoFix a bad malloc (why the hell is it malloc???) in m_nationalchars
brain [Fri, 20 Mar 2009 13:30:46 +0000 (13:30 +0000)]
Fix a bad malloc (why the hell is it malloc???) in m_nationalchars

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11240 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoThis is a nicer fix, and we are seen to be explicitly freeing the BSTR values, which...
brain [Fri, 20 Mar 2009 00:40:24 +0000 (00:40 +0000)]
This is a nicer fix, and we are seen to be explicitly freeing the BSTR values, which explicitly shows any reader of the code that this is a leak prevention measure

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11239 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoRemove an old class member here that is no longer used and has been commented out...
brain [Fri, 20 Mar 2009 00:30:25 +0000 (00:30 +0000)]
Remove an old class member here that is no longer used and has been commented out for months

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11238 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoThis needs a test compile, i do not have my laptop to hand to do this. May break...
brain [Fri, 20 Mar 2009 00:06:21 +0000 (00:06 +0000)]
This needs a test compile, i do not have my laptop to hand to do this. May break win32 build.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11237 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoShow users their own server name in "/whois myself"
danieldg [Thu, 19 Mar 2009 16:58:00 +0000 (16:58 +0000)]
Show users their own server name in "/whois myself"

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11236 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoMake m_dccallow reread badfiles on rehash, not just on load.
dz [Wed, 18 Mar 2009 19:15:26 +0000 (19:15 +0000)]
Make m_dccallow reread badfiles on rehash, not just on load.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11235 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agofix dccallow logic to allow <badfile:action> to override <dccallow:defaultaction...
dz [Wed, 18 Mar 2009 19:15:25 +0000 (19:15 +0000)]
fix dccallow logic to allow <badfile:action> to override <dccallow:defaultaction>, spotted by Taros.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11234 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoFix for bug #791, if an error is set treat this as 'could not get certificate'
brain [Wed, 18 Mar 2009 11:00:51 +0000 (11:00 +0000)]
Fix for bug #791, if an error is set treat this as 'could not get certificate'

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11233 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoFix for bug #784 reported by HiroP, add check to the FHOST code to not send out FHOST...
brain [Wed, 18 Mar 2009 10:52:10 +0000 (10:52 +0000)]
Fix for bug #784 reported by HiroP, add check to the FHOST code to not send out FHOST for unregistered users, there was already a check on OnMode hence why the +x didnt go out, just the host change.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11232 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoFix for bug #788, set user->quitting before writing error to users socket, and allow...
brain [Wed, 18 Mar 2009 10:28:10 +0000 (10:28 +0000)]
Fix for bug #788, set user->quitting before writing error to users socket, and allow appending to sendq for quitting users (just don't check sendq's on quitting users)
This allows the ERROR message to reach the user.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11231 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoFix for bug #792 reported by recyclebin, do not attempt to ping local servers which...
brain [Wed, 18 Mar 2009 10:22:38 +0000 (10:22 +0000)]
Fix for bug #792 reported by recyclebin, do not attempt to ping local servers which are not fully connected yet, thanks!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11230 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoFix for bug #773 reported by Taros, thanks!
brain [Wed, 18 Mar 2009 10:03:55 +0000 (10:03 +0000)]
Fix for bug #773 reported by Taros, thanks!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11229 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agofix for bug #777
brain [Wed, 18 Mar 2009 09:42:19 +0000 (09:42 +0000)]
fix for bug #777

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11228 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoInstead of re adding the HandshakeTimer in m_spanningtree, make it a reoccurring...
psychon [Mon, 16 Mar 2009 17:44:06 +0000 (17:44 +0000)]
Instead of re adding the HandshakeTimer in m_spanningtree, make it a reoccurring timer and kill at the right time.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11227 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoFix m_shun silently blocking allowed commands on shunned users, fixes bug #771 report...
dz [Sun, 15 Mar 2009 19:07:04 +0000 (19:07 +0000)]
Fix m_shun silently blocking allowed commands on shunned users, fixes bug #771 reported by Taros.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11225 e03df62e-2008-0410-955e-edbf42e46eb7

15 years agoUse IS_OPER(u) instead of checking for umode +o to correctly add opers during bursts...
dz [Sun, 15 Mar 2009 18:31:56 +0000 (18:31 +0000)]
Use IS_OPER(u) instead of checking for umode +o to correctly add opers during bursts, fixes bugs #786 and #778 reported by Taros.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11224 e03df62e-2008-0410-955e-edbf42e46eb7