11237 Commits

Author SHA1 Message Date
attilamolnar
5513496d5f m_timedbans Notice halfops and above when a timed ban is placed
Fixes #415 reported by @killerrabbit
2013-03-24 19:11:36 +01:00
Adam
6b2d45c154 win: Made config, modules, data, and log paths configurable.
Update win/README with instructions on how to use cmake-gui.
Always build m_regex_stdlib, since all VS versions we support
support it.
2013-03-23 22:47:25 -05:00
attilamolnar
21f7e4a8cd Fix infinite loop when all DNS request slots are in use
This is not the best way to detect this scenario, a better detection mechanism will replace this in the future
2013-03-20 23:43:51 +01:00
attilamolnar
fd6a8e9392 Add support for mandatory tags in included config files
If the mandatory tag is not found in the included config, the rehash is aborted. This is especially useful for remote includes, as it allows users to have a dummy tag at the end of the included config to indicate that the config has been wholly read.
This method does not depend on exit codes so even situations where wget returns an empty or a wrong page that we would otherwise accept can be detected and an error can be generated before we assume that the contents have disappeared (and unload all modules, if the included file is supposed to contain module tags, for example).

Usage: <include ... mandatorytag="namehere"> - if the included config doesn't contain a <namehere> tag then the rehash is aborted

Fixes #30 reported by @Justasic
2013-03-20 21:43:46 +01:00
attilamolnar
f658270c83 m_spanningtree Fix incoming channel modes being lost for 0-user permanent channels on the losing side of a netmerge
This did not affect listmodes
2013-03-20 18:23:44 +01:00
attilamolnar
31de5a7e8f m_permchannels Load channels from the config only at module load time and only when there are no linked servers to avoid desync 2013-03-20 18:23:43 +01:00
attilamolnar
e5aaeec626 m_connflood Ignore e-lined users 2013-03-19 18:06:22 +01:00
Adam
f5377329ef Link win32_memory too inspircd too 2013-03-15 15:10:53 -05:00
attilamolnar
efdf336d8c m_ssl_openssl Make it clear that a CA file is not mandatory 2013-03-15 00:50:35 +01:00
ShutterQuick
b71f1affea Modified m_timedbans to behave more like setting mode +b manually.
It now accepts extbans. If one enters something not an extban, or valid banmask, it'll add "!*@*", making it a nick-ban instead of borking.
2013-03-15 00:41:16 +01:00
Adam
b17ba83e9c Replace Windows build system and installer with cmake 2013-03-14 15:19:41 -04:00
attilamolnar
ade9cc2134 Remove dead code from DNS 2013-03-11 20:52:21 +01:00
attilamolnar
e59bb59ea2 m_connectban Switch to OnSetUserIP hook to handle cgiirc users properly, ignore e-lined users 2013-03-11 20:48:58 +01:00
attilamolnar
fe9e594755 Fix m_dnsbl not checking cgiirc users when the cgiirc address is elined 2013-03-11 20:48:58 +01:00
attilamolnar
2bdbb2878e Either store the Resolver in DNS::AddResolverClass() or delete it before returning 2013-03-11 20:48:58 +01:00
attilamolnar
99a470a590 Stop user initialization when the user is marked as quitting after OnSetUserIP 2013-03-11 20:48:58 +01:00
attilamolnar
3e6a05f4fa m_dnsbl Fix connecting users timeouting when a dnsbl result is in the dns cache
Fixes #431 reported by @killerrabbit
2013-03-11 20:48:58 +01:00
Attila Molnar
af496f1fea Merge pull request #437 from SaberUK/insp20+doxygen-update
Update Doxyfile for the latest version of Doxygen.
2013-03-09 11:22:36 -08:00
Peter Powell
6da7562f94 Update Doxyfile for the latest version of Doxygen. 2013-03-08 16:50:04 +00:00
attilamolnar
0fa15e165f cmd_lusers Be smart and know how many invisible users are there without iterating the userlist 2013-03-03 23:08:33 +01:00
attilamolnar
596f199f11 cmd_lusers Use of size() instead of counting elements 2013-03-03 23:08:33 +01:00
attilamolnar
19523c7500 cmd_lusers Refresh max local/global user counters after a user connects
Fixes #423 reported by @RawrDragon
2013-03-03 23:08:33 +01:00
attilamolnar
1d3d2a5434 cmd_lusers Convert to a module 2013-03-03 23:08:33 +01:00
Attila Molnar
be5b0e2b39 Merge pull request #430 from SaberUK/insp20+config-tidy
Reorganise configuration files.
2013-03-02 08:23:22 -08:00
Peter Powell
5f6372b2f0 Reorganise configuration files:
- Example config files now end with .conf.example.
- Example text files now end with .txt.example.
- Removed 'inspircd' from the name of multiple example files.
- Added missing oper motd example file.
2013-03-02 15:50:09 +00:00
attilamolnar
d8e92ecc5e m_ssl_gnutls Fix null pointer dereference in case gnutls_xxx_get_name() returns NULL 2013-02-17 21:59:23 +01:00
Peter Powell
83e36af589 Fix multiple escape bugs in m_httpd_stats. 2013-02-17 21:36:26 +01:00
attilamolnar
a0f92dd232 cmd_invite Send invite announcements to halfops and higher when <security:announceinvites> is 'dynamic' regardless of the channel being +i or not
Clarify what the various options mean in the doc

Fixes #418 reported by @RawrDragon
2013-02-11 17:52:21 +01:00
attilamolnar
1f541d7bbc cmd_invite Correct error message when the user has no privs to invite and no halfop prefix is available 2013-02-11 17:47:51 +01:00
attilamolnar
58212b3d2b Fix exactly <limits:maxchan> long channel names being truncated
Fixes #422 reported by @RawrDragon
2013-02-11 16:16:39 +01:00
Attila Molnar
41c6a4d5ef Merge pull request #416 from SaberUK/insp20+clang42-warnings
Remove unused variables detected by Clang 4.2.
2013-02-03 07:01:56 -08:00
Peter Powell
bf6c166c64 Remove unused variables detected by Clang 4.2. 2013-02-01 11:47:39 +00:00
Attila Molnar
0cca0dbb8a Merge pull request #414 from SaberUK/insp20+hashmap
[2.0] Use the preprocessor to detect whether hash_map is available.
2013-01-28 13:57:10 -08:00
Attila Molnar
2239d91ca7 Merge pull request #413 from SaberUK/insp20+httpd
[2.0] Use a better server name in m_httpd.
2013-01-28 13:53:06 -08:00
Peter Powell
2e04480f21 Use the preprocessor to detect whether hash_map is available. 2013-01-28 21:38:03 +00:00
Peter Powell
1a9e21cd03 Use a better server name in m_httpd. 2013-01-28 21:34:14 +00:00
attilamolnar
6e3bba315d m_ssl_gnutls Fix build with GnuTLS 1.x
Fixes #409 reported by @SaberUK
2013-01-28 21:10:11 +01:00
attilamolnar
228ac9496b m_chanhistory Fix durations containing 'S' being rejected 2013-01-27 17:22:18 +01:00
Peter Powell
0e56edffa3 Use GNU install on Solaris. 2013-01-27 16:54:22 +01:00
Attila Molnar
c4c7448c68 Merge pull request #407 from SaberUK/insp20+fix-openssl-detection
Fix OpenSSL detection on distributions which modify the version number.
2013-01-22 09:47:50 -08:00
Peter Powell
b4d6e0bf2a Fix OpenSSL detection on distributions which modify the version number. 2013-01-22 10:52:56 +00:00
Robin Burchell
a76167642d Merge pull request #403 from SaberUK/insp20+wextra-fixes
Fix warning: "const type qualifier on return type has no effect".
2013-01-16 03:18:13 -08:00
Peter Powell
1883b0cebe Fix warning: "const type qualifier on return type has no effect". 2013-01-16 11:13:23 +00:00
attilamolnar
ee5e5aa775 m_spanningtree Fix rare desync when a KILL crosses a message that has the killed user's prefix and modifies global state 2013-01-14 19:59:47 +01:00
attilamolnar
61dcf0d999 m_maphide Ignore unregistered users
Fixes #400 reported by @SaberUK
2013-01-13 23:33:20 +01:00
Attila Molnar
fd4b74357b Merge pull request #397 from Robby-/insp20+cmode_b-limit
[2.0] cmode_b: Correction to the maxbans conditional
2013-01-05 07:44:55 -08:00
Robby-
1aaba0debc cmode_b: Correction to the maxbans conditional
It was possible to set one more ban beyond the configured limit.
2013-01-03 19:35:02 +01:00
attilamolnar
3988e9779e m_messageflood Ask to be the last to handle OnUserPreMessage/OnUserPreNotice
Fixes #394 reported by @JDowny
2013-01-02 19:01:57 +01:00
attilamolnar
9cd47a421d m_banredirect Deny the join to the redirect channel if it has a redirecting ban set that matches the user
Fixes #395 reported by @patatje368
2013-01-02 18:36:09 +01:00
attilamolnar
d0aa0fab53 m_banredirect Remove unnecessary hooks, cleanup
- Remove prioritization before m_banexception, it doesn't even hook OnUserPreJoin
- Remove OnChannelDelete handler: nothing to do in that case, our extension item is automatically freed
- Remove empty OnRehash handler
2013-01-02 18:36:00 +01:00