Alexey Sokolov
85984ee4be
Merge pull request #1277 from xnrand/master
...
Add network-specific settings for cert validation
2016-08-20 12:08:41 +01:00
KindOne
3f48d0a01a
Remove reference for attaching queries.
...
This was added in commit 85b84078f8 from pull request 1072.
Pull request 1014 would of made this command possible, but it was never pulled.
2016-08-14 21:12:14 -04:00
Alexey Sokolov
847f2baf24
Fix a null pointer dereference.
...
It sometimes happened when user attaches to a channel.
No released version is affected.
Thanks to Zoddo for the report!
2016-07-29 23:13:02 +01:00
Alexey Sokolov
f1ef8c79db
Fix cygwin build
2016-07-20 00:19:19 +01:00
Tor Arne Vestbø
4d5724eb0a
Add OnPrivBufferStarting/Ending signals, similar to Chan buffers
...
Allows hooking into query buffer playback before and after all the
lines of the query buffer are replayed. The EModRet return value
has no effect at the moment, but may be used in the future to e.g.
prevent playback. The Chan version of these signals use EModRet to
skip emitting the status message, but not the whole playback.
2016-07-13 15:15:56 +02:00
Alexey Sokolov
b7fc670a39
Merge pull request #1290 from torarnv/fix-gettimeofday-ret
...
Fix inverted gettimeofday() return value handling
2016-07-08 10:28:23 +01:00
Tor Arne Vestbø
02bfb9eaf5
Centralize logic to get current server time
...
A few different implementations of computing the current time were
spread out through the code base, most of them using gettimeofday().
This centralizes the logic in CUtil::GetTime() for easier maintenance,
and also allows all call sites to get the benefit of the clock_gettime()
code path on systems that support it.
2016-07-06 01:16:15 +02:00
Alexey Sokolov
5dd209369d
Merge pull request #1289 from torarnv/echo-message-time
...
Don't strip timestamp when sending echo-messages
2016-07-05 21:41:01 +01:00
Tor Arne Vestbø
852c9832a0
Fix inverted gettimeofday() return value handling
...
The gettimeofday function returns 0 for success, not for failure. As a
result of the inverted logic we were losing millisecond precision when
parsing incoming messages on non-HAVE_CLOCK_GETTIME systems (macOS).
2016-07-05 18:39:53 +02:00
Tor Arne Vestbø
60e88fc19d
Don't strip timestamp when sending echo-messages
...
We preserve the time of the original message by making a copy of it,
and just changing the nick, which we then pass on to the CMessage
overload of PutClient, which converts the timestamp into a @time tag.
2016-07-05 16:24:32 +02:00
Alexey Sokolov
ff2d1e47b2
Merge pull request #1282 from Zarthus/always-send-nick-in-notice
...
Always send the users name in NOTICE when logging in.
2016-06-26 20:55:02 +01:00
Jos Ahrens
3ed914aa81
Always send the users name in NOTICE when logging in.
2016-06-20 08:06:00 +01:00
Thomas Ward
f76ab76c4a
Update default SSL ciphers
...
Use an updated list of Default Ciphers, pulled from the same Mozilla recommendations.
This was pulled by me on June 3, 2016, thought we should update the cipherlist since it's been 5 months since it was last updated.
2016-06-03 11:40:37 -04:00
xnrand
409ed4b6bc
Add network-specific config for cert validation
...
Added the following two network-specific configuration options that can
be changed via controlpanel or webadmin:
* TrustAllCerts: Will trust ALL certificates when enabled, effectively
disabling TLS certificate validation.
Default value: false
* TrustPKI: Whether or not to trust PKI-valid certificates. Setting this
to false will make znc trust only trusted certificates added by the
user.
Default value: true
With default values, behavior is exactly the same as before.
This is based on the work of Roelf Wichertjes. See YourBNC/znc@5c747598 .
See znc/znc#866 .
2016-05-20 01:17:26 +02:00
Kyle Fuller
032f00732a
[CString.StripControls] Srip bg colours when we reset fg
2016-04-11 22:09:40 +01:00
staticfox
249e43047d
template: Iterate over size_type
2016-03-31 10:32:57 -04:00
staticfox
22e58205fc
template: Don't re-declare sEnglishes
2016-03-31 10:20:04 -04:00
Adam
2494bd722a
Change Channel SetInConfig/SetKey to use ECONFIG_DELAYED_WRITE
2016-03-26 13:34:02 -04:00
Adam
6bde0fc270
Add config write delay setting
2016-03-26 13:34:02 -04:00
Alexey Sokolov
711e835c93
Translateable webadmin to Russian.
2016-02-24 21:34:23 +00:00
Alexey Sokolov
8893b90e3a
Modules web subpages should have translateable titles
2016-02-24 21:31:38 +00:00
Alexey Sokolov
f01076cc6e
Fix couple of bugs in i18n when source string contains non-ASCII characters.
2016-02-24 21:31:38 +00:00
Alexey Sokolov
07cabc3c00
Treat real name similarly to quit message, except that the number isn't shown.
...
See #818 and #1244
2016-02-23 22:36:45 +00:00
Alexey Sokolov
dfba82fc9a
Merge branch '1.6.x'
2016-02-23 22:23:39 +00:00
Alexey Sokolov
71cdb81fe8
Don't save ZNC version to config as part of quit message.
...
Introduce one more string for ExpandString.
Fix #1244
2016-02-18 22:18:08 +00:00
Alexey Sokolov
d09a0a0966
Make some strings in core translateable.
2016-01-31 20:09:19 +00:00
Alexey Sokolov
8eeeaf71a0
Add framework for translating ZNC to different languages
2016-01-31 20:09:19 +00:00
Alexey Sokolov
ae3eb5c219
Revert "Revert "Fix delay between receiving signal in separate thread and handling it""
...
This reverts commit 615d936b6c .
I forgot the condition before...
2016-01-23 11:57:48 +00:00
Alexey Sokolov
615d936b6c
Revert "Fix delay between receiving signal in separate thread and handling it"
...
This reverts commit e14e3586e1 .
Until I find what's wrong with it...
2016-01-23 11:40:43 +00:00
Alexey Sokolov
e14e3586e1
Fix delay between receiving signal in separate thread and handling it
...
Also this allows increasing maximum wait time in poll(), though it
doesn't matter much
2016-01-23 11:05:30 +00:00
Alexey Sokolov
82b30ced5e
Bump CMake requirement to 3.1 and fix code which requires 3.2+
...
CMake supports CXX_STANDARD target property (and therefore
automatic -std=c++11) since 3.1
Thanks to noteness for the report
2016-01-17 16:49:29 +00:00
Alexey Sokolov
561a18054c
Yet another attempt to use CMake
2016-01-15 10:50:33 +00:00
Alexey Sokolov
cfa178f75e
Fix build when ICU is disabled
...
Thanks FFForever for report
2016-01-09 21:10:44 +00:00
Alexey Sokolov
e9006634cb
Merge branch '1.6.x'
2016-01-09 18:23:06 +00:00
Alexey Sokolov
5d014193b4
Don't require reconnect after changing encoding.
2016-01-09 18:18:44 +00:00
Alexey Sokolov
1f226d2ade
Add test for #1229 and actually fix it.
2016-01-09 18:00:47 +00:00
Alexey Sokolov
4fe4a45dd6
Disable legacy encoding mode when modpython is loaded.
...
Python is not happy when using non-unicode text as str.
Fix #1229
2016-01-09 14:18:24 +00:00
Ondřej Nový
6881ca5b8f
Fixed few misspellings
2016-01-05 20:45:08 +01:00
onovy
5d6068ca9d
Default SSL ciphers updated to new Mozilla recommendation
2016-01-02 17:32:30 +01:00
Falk Seidel
8f73840e74
Welcome to 2016
...
🎆 Happy 2016 🎆
2016-01-01 20:11:21 +01:00
Alexey Sokolov
a8cd5625bc
Merge branch '1.6.x'
2015-12-30 16:13:58 +00:00
Alexey Sokolov
901ead89d5
Fix 404 when accessing web UI with the prefix, but without ending /
...
Thanks, txtsd
2015-12-30 16:13:19 +00:00
Alexey Sokolov
e210ade2ef
Merge commit 'refs/pull/1205/head' of github.com:znc/znc
2015-12-14 18:03:25 +00:00
Donal Cahill
0a3ef43a2e
Fix string comparison.
2015-12-13 23:23:12 +00:00
Donal Cahill
15c200c908
Disallow CIDR /00000
2015-12-13 23:16:58 +00:00
Donal Cahill
2ec724a256
Fix char comparison.
2015-12-13 20:13:19 +00:00
Donal Cahill
db7e1ef162
Fix up CIDR code.
2015-12-13 15:36:35 +00:00
Donal Cahill
56c97af14b
Improve code quality.
2015-12-13 12:23:08 +00:00
Donal Cahill
a5540557ac
Fix another memory leak.
2015-12-13 08:10:40 +00:00
Donal Cahill
8748abb525
Try to fix memory leak.
2015-12-13 07:58:04 +00:00