11722 Commits

Author SHA1 Message Date
Attila Molnar
dca7232d63 m_httpd_stats Be more conservative when escaping data
Fix clang warning
2014-01-21 14:10:01 +01:00
Attila Molnar
ed57ffc4fe Increase the penalty for a few core commands 2014-01-21 14:04:45 +01:00
Attila Molnar
e1d0503a76 m_joinflood Unset the mode on unload 2014-01-21 00:44:41 +01:00
Peter Powell
d0a472641b Fix some logically dead code which was found by Coverity. 2014-01-21 00:43:12 +01:00
Attila Molnar
b8f0e349ce m_svshold Add config option to hide snotices 2014-01-20 17:05:01 +01:00
Attila Molnar
ef264e2dca m_httpd Add timeout option; remove timed out connections 2014-01-20 16:57:30 +01:00
Attila Molnar
659530cbab Update example configs/helpop 2014-01-20 16:48:20 +01:00
Mantas Mikulėnas
b43e157a14 Use standard example addresses in configs
`2001:db8::/32` is the [standard][1] IPv6 example address range, using
it also makes it clear when the user has just copy-pasted the example
config and didn't actually whitelist 6BONE for some strange reason.

Similarly, there are example addresses for [IPv4][2] and [DNS][3].

[1]: http://tools.ietf.org/html/rfc3849
[2]: http://tools.ietf.org/html/rfc5737
[3]: http://tools.ietf.org/html/rfc2606
2014-01-20 16:44:10 +01:00
Attila Molnar
44301db245 m_services_account Add workaround for wrong host being displayed in numeric when cgiirc users log in using SASL 2014-01-20 16:40:01 +01:00
Attila Molnar
3bf4424602 m_dnsbl Don't send snotice when the {G|K|Z}line already exists
Fixes issue #717 reported by @Robby-
2014-01-20 16:30:39 +01:00
Attila Molnar
0f91b6173b m_joinflood Fix remote joins affecting local joinflood state when the channel is locked
Fixes issue #694 reported by @TurkDesk
2014-01-19 17:04:11 +01:00
Attila Molnar
f75a0d5482 Use FindNickOnly() in a few more places if a local user is performing an action to prevent UID walking 2014-01-19 16:48:41 +01:00
Attila Molnar
69af56f973 m_dccallow Increase penalty for /DCCALLOW help 2014-01-19 16:42:10 +01:00
Attila Molnar
dca19b60ef m_alias Fix out of bounds string access that happened with certain replace strings 2014-01-19 16:39:46 +01:00
Daniel Vassdal
84dc48d142 Fix OOB error in sa2cidr() 2014-01-17 12:38:53 +01:00
Attila Molnar
69a2d4e9b2 Merge pull request #732 from grawity/saslfix
m_sasl: properly handle bad-mechanism failures
2014-01-16 10:26:16 -08:00
Attila Molnar
1df6653270 m_sajoin Send global snotice when the join happens
Remove "sent remote SAJOIN" local snotice

Fixes issue #382 reported by @JDowny
2014-01-14 15:01:44 +01:00
Attila Molnar
1cf73c8f32 Don't send the "your unique ID" (numeric 042) message on connect 2014-01-13 15:20:01 +01:00
Attila Molnar
d0a6b9c6ea m_mlock Only deny the mlocked mode from being changed instead of denying the entire mode change if it contains a single mlocked mode
Fixes issue #615 reported by @BlacklightShining
2014-01-13 14:01:16 +01:00
Mantas Mikulėnas
1c89cb1002 Support SASL messages other than 'C' and 'D' 2014-01-11 23:53:24 +02:00
Mantas Mikulėnas
fd57589b17 Handle SASL failures during SASL_INIT (wrong mechanism, etc.) 2014-01-11 23:41:20 +02:00
Attila Molnar
36f12984d3 Stop null checking pointers that are always valid 2014-01-09 13:33:33 +01:00
Attila Molnar
833ae95adc Remove PreText()-like functions
Do processing in OnUserPreMessage()
2014-01-08 12:52:07 +01:00
Attila Molnar
d379dcab40 Read uline state in spanningtree; remove ConfigReader::ulines 2014-01-08 12:41:01 +01:00
Attila Molnar
ade1500382 Automatically register and unregister mode watchers 2014-01-06 13:37:06 +01:00
Attila Molnar
5a366d8945 Unset all extensions and the topic when lowering TS on a channel 2014-01-06 13:29:10 +01:00
Attila Molnar
be3644c74b m_deaf Simplify logic 2014-01-06 13:17:06 +01:00
Attila Molnar
9136136ac3 Move server description field from TreeServer into Server; remove OnGetServerDescription hook 2014-01-05 15:20:17 +01:00
Attila Molnar
11916574f6 Introduce Server class
- Replaces std::string server in User
- Replaces InspIRCd::ULine() and SilentULine()
2014-01-05 15:04:01 +01:00
Attila Molnar
2f181fef77 Remove useless ULine() checks 2014-01-05 14:27:30 +01:00
Attila Molnar
8acee01804 m_spanningtree Remove vector from TreeServer::QuitUsers() 2014-01-05 14:23:03 +01:00
Attila Molnar
d736eba00b Improve UserManager::QuitUser() and related code
- Make operreason optional; NULL means same as quitreason
- Remove User::quietquit, it is now handled internally in spanningtree
- Send snotice about quitting remote users from spanningtree
2014-01-05 14:17:12 +01:00
Attila Molnar
7ce26772d9 Fix possible use of invalid iterator on module unload
When a module quits a user or destroys a channel in OnCleanup() the object is no longer in the container being iterated by the time OnCleanup() returns
2014-01-05 13:47:28 +01:00
Attila Molnar
a500ec70bb Change type of snomask parameter to char in ProtocolInterface::SendSNONotice() 2014-01-04 19:43:04 +01:00
Attila Molnar
b5bc73e310 Add functor that does strict weak ordering based on national_case_insensitive_map 2014-01-04 19:38:20 +01:00
Peter Powell
428e8f4f69 Fix some Windows-related problems.
- Fix an error relating to the unavailability of std::back_inserter.
- Fix loading configuration files when using relative paths.
- Fix two methods in hashcomp being exported twice.
- Remove some unimportant error messages.
2014-01-04 19:31:29 +01:00
Attila Molnar
e1976796bf Show +i users on a channel to opers having the channels/auspex priv who do /NAMES from outside of the chan
Discovered by @Cronus89
2014-01-04 13:02:39 +01:00
Attila Molnar
a45db73920 Merge pull request #714 from SaberUK/insp20+fix-helpop
[2.0] Fix the HELPOP database being destroyed when a rehash fails.
2013-12-27 16:13:00 -08:00
Peter Powell
43babe5c3e Fix the HELPOP database being destroyed when a rehash fails. 2013-12-27 15:25:42 +00:00
Daniel Vassdal
928c5e6bed Allow ranges beginning with 0 in m_channames 2013-12-21 15:20:17 +01:00
Attila Molnar
57d02ca02e m_showwhois Update settings on rehash 2013-12-19 17:02:41 +01:00
Attila Molnar
7bf233bf00 m_filter Remove ImplFilter and needless dynamic_cast 2013-12-19 16:57:09 +01:00
Adam
dbbd333956 Add m_ldap, and convert m_ldapoper and m_ldapauth to use it. 2013-12-19 16:40:11 +01:00
Attila Molnar
429a4ddf6a Fix FileReader not working with files specified in <files> 2013-12-18 18:07:30 +01:00
Attila Molnar
a1d46b8bff Add m_showfile, remove cmd_rules 2013-12-18 18:01:19 +01:00
Attila Molnar
a98d2f5086 m_auditorium Switch to SimpleChannelModeHandler 2013-12-18 16:32:22 +01:00
Attila Molnar
ba0802d8a8 m_spanningtree Fix clang warning and wrong operator in if 2013-12-18 16:31:09 +01:00
Attila Molnar
1e8389b27f Clean up CoreException
- Remove default constructor
- Replace virtual functions returning C strings with functions returning const std::string refs
2013-12-18 16:20:40 +01:00
Daniel Vassdal
0680b52987 Fix issues discovered by Coverity
- Fix resource leak in InspIRCd::Format()
- Explicitly set NewServices to NULL before the object it points to goes out of scope
2013-12-18 16:10:33 +01:00
Attila Molnar
ff407e6751 Remove unused motd and rules field from ServerConfig 2013-12-18 16:07:50 +01:00