znc.git
2 years agoAppVeyor: show config.log even if ./configure failed master
Alexey Sokolov [Sat, 23 Jan 2016 15:01:11 +0000 (15:01 +0000)] 
AppVeyor: show config.log even if ./configure failed

2 years agoRevert "Revert "Fix delay between receiving signal in separate thread and handling...
Alexey Sokolov [Sat, 23 Jan 2016 11:55:03 +0000 (11:55 +0000)] 
Revert "Revert "Fix delay between receiving signal in separate thread and handling it""

This reverts commit 615d936b6cf32350c289f291c5dc7f2734cfaf31.

I forgot the condition before...

2 years agoRevert "Fix delay between receiving signal in separate thread and handling it"
Alexey Sokolov [Sat, 23 Jan 2016 11:40:43 +0000 (11:40 +0000)] 
Revert "Fix delay between receiving signal in separate thread and handling it"

This reverts commit e14e3586e13fdcf41c733a259884e68142f6425b.

Until I find what's wrong with it...

2 years agoFix delay between receiving signal in separate thread and handling it
Alexey Sokolov [Sat, 23 Jan 2016 11:02:06 +0000 (11:02 +0000)] 
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

2 years agoBump CMake requirement to 3.1 and fix code which requires 3.2+
Alexey Sokolov [Sun, 17 Jan 2016 16:39:03 +0000 (16:39 +0000)] 
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

2 years agoMerge branch '1.6.x'
Alexey Sokolov [Sun, 17 Jan 2016 12:07:58 +0000 (12:07 +0000)] 
Merge branch '1.6.x'

2 years agosasl: add option to show which mechanisms failed and succeeded
Alexey Sokolov [Sun, 17 Jan 2016 12:04:53 +0000 (12:04 +0000)] 
sasl: add option to show which mechanisms failed and succeeded

Fix #770

2 years agoExpand workaround for Qt on cygwin to 32 bit version
Alexey Sokolov [Sat, 16 Jan 2016 21:41:09 +0000 (21:41 +0000)] 
Expand workaround for Qt on cygwin to 32 bit version

2 years agoUse any available python version in configure cmake wrapper
Alexey Sokolov [Sat, 16 Jan 2016 20:58:51 +0000 (20:58 +0000)] 
Use any available python version in configure cmake wrapper

2 years agoRequire ICU for Modpython in CMake too
Alexey Sokolov [Sat, 16 Jan 2016 17:21:24 +0000 (17:21 +0000)] 
Require ICU for Modpython in CMake too

See #1229

2 years agoReally fix cmake build when qt5 is not fully found
Alexey Sokolov [Sat, 16 Jan 2016 17:11:53 +0000 (17:11 +0000)] 
Really fix cmake build when qt5 is not fully found

try_compile() errors out instead of just returning false when underlying
CMakeLists.txt fails :-(

Thanks kerio again

2 years agoFix CMake build when Qt5 is partially found
Alexey Sokolov [Sat, 16 Jan 2016 16:36:32 +0000 (16:36 +0000)] 
Fix CMake build when Qt5 is partially found

Thanks kerio for report

2 years agoYet another attempt to use CMake
Alexey Sokolov [Mon, 14 Dec 2015 00:16:44 +0000 (00:16 +0000)] 
Yet another attempt to use CMake

2 years agoFix one more place in integration test
Alexey Sokolov [Sun, 10 Jan 2016 09:24:12 +0000 (09:24 +0000)] 
Fix one more place in integration test

where executable was run from source dir.

2 years agoAlign #include in modperl/modpython with other files.
Alexey Sokolov [Thu, 7 Jan 2016 00:05:32 +0000 (00:05 +0000)] 
Align #include in modperl/modpython with other files.

2 years agoTravis: fix path to gtest in tarball mode
Alexey Sokolov [Sun, 10 Jan 2016 01:01:49 +0000 (01:01 +0000)] 
Travis: fix path to gtest in tarball mode

2 years agoTravis: fix typo
Alexey Sokolov [Sat, 9 Jan 2016 23:33:35 +0000 (23:33 +0000)] 
Travis: fix typo

2 years agoTravis: install googlemock and disable swig in tarball mode
Alexey Sokolov [Sat, 9 Jan 2016 22:56:13 +0000 (22:56 +0000)] 
Travis: install googlemock and disable swig in tarball mode

2 years agomake-tarball: support either swig or swig3.0
Alexey Sokolov [Sat, 9 Jan 2016 22:55:56 +0000 (22:55 +0000)] 
make-tarball: support either swig or swig3.0

2 years agomake-tarball: replace realpath with readlink -f
Alexey Sokolov [Sat, 9 Jan 2016 22:28:00 +0000 (22:28 +0000)] 
make-tarball: replace realpath with readlink -f

http://unix.stackexchange.com/questions/101080/realpath-command-not-found

2 years agoTravis: test make-tarball.sh
Alexey Sokolov [Sat, 9 Jan 2016 22:18:34 +0000 (22:18 +0000)] 
Travis: test make-tarball.sh

2 years agoAdd test for znc-buildmod
Alexey Sokolov [Sat, 9 Jan 2016 22:01:33 +0000 (22:01 +0000)] 
Add test for znc-buildmod

2 years agoFix build when ICU is disabled
Alexey Sokolov [Sat, 9 Jan 2016 21:10:44 +0000 (21:10 +0000)] 
Fix build when ICU is disabled

Thanks FFForever for report

2 years agoInt test: run executable from installation dir instead of source
Alexey Sokolov [Sat, 9 Jan 2016 20:47:00 +0000 (20:47 +0000)] 
Int test: run executable from installation dir instead of source

2 years agoAdd test for encoding change
Alexey Sokolov [Sat, 9 Jan 2016 20:26:22 +0000 (20:26 +0000)] 
Add test for encoding change

2 years agoMerge branch '1.6.x'
Alexey Sokolov [Sat, 9 Jan 2016 18:23:06 +0000 (18:23 +0000)] 
Merge branch '1.6.x'

2 years agoDon't require reconnect after changing encoding.
Alexey Sokolov [Sat, 9 Jan 2016 18:18:44 +0000 (18:18 +0000)] 
Don't require reconnect after changing encoding.

2 years agoAdd test for #1229 and actually fix it.
Alexey Sokolov [Sat, 9 Jan 2016 18:00:47 +0000 (18:00 +0000)] 
Add test for #1229 and actually fix it.

2 years agoDisable perl and python tests in coverage.
Alexey Sokolov [Sat, 9 Jan 2016 15:15:43 +0000 (15:15 +0000)] 
Disable perl and python tests in coverage.

2 years agoDisable legacy encoding mode when modpython is loaded.
Alexey Sokolov [Sat, 9 Jan 2016 14:09:34 +0000 (14:09 +0000)] 
Disable legacy encoding mode when modpython is loaded.

Python is not happy when using non-unicode text as str.

Fix #1229

2 years agoMerge branch '1.6.x'
Alexey Sokolov [Thu, 7 Jan 2016 20:59:50 +0000 (20:59 +0000)] 
Merge branch '1.6.x'

2 years ago[buildmod] non-zero exit code when file not found
dgw [Mon, 4 Jan 2016 04:41:38 +0000 (22:41 -0600)] 
[buildmod] non-zero exit code when file not found

Fixes #1226
Close #1227

2 years agoFix memory leak in modperl.
Alexey Sokolov [Thu, 7 Jan 2016 01:14:21 +0000 (01:14 +0000)] 
Fix memory leak in modperl.

The reason is the same as it was for modpython in #1017

2 years agoAdd basic tests for modperl and modpython
Alexey Sokolov [Thu, 7 Jan 2016 00:52:52 +0000 (00:52 +0000)] 
Add basic tests for modperl and modpython

2 years agoMerge pull request #1228 from onovy/typos
Alexey Sokolov [Tue, 5 Jan 2016 21:59:21 +0000 (21:59 +0000)] 
Merge pull request #1228 from onovy/typos

Fixed few misspellings

2 years agoFixed few misspellings
Ondřej Nový [Tue, 5 Jan 2016 19:41:45 +0000 (20:41 +0100)] 
Fixed few misspellings

2 years agoMerge pull request #1222 from onovy/ssl_ciphers_update
Alexey Sokolov [Sat, 2 Jan 2016 18:07:34 +0000 (18:07 +0000)] 
Merge pull request #1222 from onovy/ssl_ciphers_update

Default SSL ciphers updated to new Mozilla recommendation

2 years agoDefault SSL ciphers updated to new Mozilla recommendation
onovy [Sat, 2 Jan 2016 16:26:31 +0000 (17:26 +0100)] 
Default SSL ciphers updated to new Mozilla recommendation

2 years agoMerge pull request #1220 from Un1matr1x/master
Alexey Sokolov [Fri, 1 Jan 2016 19:31:09 +0000 (19:31 +0000)] 
Merge pull request #1220 from Un1matr1x/master

Welcome to 2016

2 years agoWelcome to 2016
Falk Seidel [Thu, 31 Dec 2015 23:00:00 +0000 (00:00 +0100)] 
Welcome to 2016

:fireworks:  Happy 2016 :fireworks:

2 years agoMerge branch '1.6.x'
Alexey Sokolov [Wed, 30 Dec 2015 16:13:58 +0000 (16:13 +0000)] 
Merge branch '1.6.x'

2 years agoFix 404 when accessing web UI with the prefix, but without ending /
Alexey Sokolov [Wed, 30 Dec 2015 16:06:09 +0000 (16:06 +0000)] 
Fix 404 when accessing web UI with the prefix, but without ending /

Thanks, txtsd

2 years agoReadme: Add coverity badge
Alexey Sokolov [Fri, 25 Dec 2015 11:03:21 +0000 (11:03 +0000)] 
Readme: Add coverity badge

2 years agoMerge pull request #1213 from nasonfish/master
Alexey Sokolov [Tue, 22 Dec 2015 16:41:38 +0000 (16:41 +0000)] 
Merge pull request #1213 from nasonfish/master

modules/sasl, modules/route_replies: interpret messages even if they have prefix tags (resolves #1212)

2 years agomodules/sasl, modules/route_replies: interpret messages as intended even if they...
Daniel Barnes [Mon, 21 Dec 2015 18:52:22 +0000 (11:52 -0700)] 
modules/sasl, modules/route_replies: interpret messages as intended even if they have prefix tags

2 years agoMerge commit 'refs/pull/1205/head' of github.com:znc/znc
Alexey Sokolov [Mon, 14 Dec 2015 18:03:25 +0000 (18:03 +0000)] 
Merge commit 'refs/pull/1205/head' of github.com:znc/znc

2 years agoFix string comparison.
Donal Cahill [Sun, 13 Dec 2015 23:23:12 +0000 (23:23 +0000)] 
Fix string comparison.

2 years agoDisallow CIDR /00000
Donal Cahill [Sun, 13 Dec 2015 23:16:58 +0000 (23:16 +0000)] 
Disallow CIDR /00000

2 years agoFix char comparison.
Donal Cahill [Sun, 13 Dec 2015 20:13:19 +0000 (20:13 +0000)] 
Fix char comparison.

2 years agoFix up CIDR code.
Donal Cahill [Sun, 13 Dec 2015 15:36:35 +0000 (15:36 +0000)] 
Fix up CIDR code.

2 years agoImprove code quality.
Donal Cahill [Sun, 13 Dec 2015 12:21:49 +0000 (12:21 +0000)] 
Improve code quality.

2 years agoFix another memory leak.
Donal Cahill [Sun, 13 Dec 2015 08:10:40 +0000 (08:10 +0000)] 
Fix another memory leak.

2 years agoTry to fix memory leak.
Donal Cahill [Sun, 13 Dec 2015 07:58:04 +0000 (07:58 +0000)] 
Try to fix memory leak.

2 years agoRemove AI_ADDRCONFIG from CIDR IP conversion.
Donal Cahill [Sun, 13 Dec 2015 07:39:10 +0000 (07:39 +0000)] 
Remove AI_ADDRCONFIG from CIDR IP conversion.

IPv6 tests will fail if AI_ADDRCONFIG is set. It's not really needed.

2 years agoAdd support for CIDR notation in allowed hosts list.
Donal Cahill [Sun, 13 Dec 2015 04:19:51 +0000 (04:19 +0000)] 
Add support for CIDR notation in allowed hosts list.

Fixes #207

2 years agoFix build without SSL
Alexey Sokolov [Thu, 10 Dec 2015 22:15:46 +0000 (22:15 +0000)] 
Fix build without SSL

2 years agoReplace virtual with override where possible.
Alexey Sokolov [Tue, 8 Dec 2015 20:51:50 +0000 (20:51 +0000)] 
Replace virtual with override where possible.

Using clang-tidy

2 years agoFix tabs/spaces inside comments
Alexey Sokolov [Mon, 7 Dec 2015 01:07:45 +0000 (01:07 +0000)] 
Fix tabs/spaces inside comments

2 years agoclang-format: switch tabs to spaces
Alexey Sokolov [Sun, 6 Dec 2015 23:58:03 +0000 (23:58 +0000)] 
clang-format: switch tabs to spaces

I like tabs, but I have to admit that spaces make source code more
consistent, because every editor/viewer tends to render tabs differently :(

2 years agoFix several comments broken by clang-format
Alexey Sokolov [Sun, 6 Dec 2015 23:29:43 +0000 (23:29 +0000)] 
Fix several comments broken by clang-format

2 years agoAdd clang-format configuration.
Alexey Sokolov [Sun, 6 Dec 2015 22:36:35 +0000 (22:36 +0000)] 
Add clang-format configuration.

For now, it uses tabs like before, to make the diff easier to read/check.
One of following commits will switch it to spaces.

2 years agoProtect some parts of code from clang-format
Alexey Sokolov [Mon, 7 Dec 2015 00:12:20 +0000 (00:12 +0000)] 
Protect some parts of code from clang-format

2 years agoDecrease max select()/poll() timeout to 5 sec.
Alexey Sokolov [Sun, 6 Dec 2015 16:16:29 +0000 (16:16 +0000)] 
Decrease max select()/poll() timeout to 5 sec.

With signals on a different thread, select() isn't interrupted anymore.
Probably need to wake up it differently now...

2 years agoAdd comment
Alexey Sokolov [Sun, 6 Dec 2015 14:39:41 +0000 (14:39 +0000)] 
Add comment

[skip ci]

2 years agoFix --disable-tdns (thanks kerio)
Alexey Sokolov [Sun, 6 Dec 2015 12:36:16 +0000 (12:36 +0000)] 
Fix --disable-tdns (thanks kerio)

2 years agoAdd threads and encoding to doxygen output.
Alexey Sokolov [Sun, 6 Dec 2015 01:16:58 +0000 (01:16 +0000)] 
Add threads and encoding to doxygen output.

2 years agoMerge pull request #1174 from DarthGandalf/thread
Alexey Sokolov [Sun, 6 Dec 2015 00:53:58 +0000 (00:53 +0000)] 
Merge pull request #1174 from DarthGandalf/thread

Rework signal handling and use C++11 threads.

2 years agoUse C++11 threads instead of custom pthread wrappers.
Alexey Sokolov [Sat, 31 Oct 2015 22:08:23 +0000 (22:08 +0000)] 
Use C++11 threads instead of custom pthread wrappers.

Signal handling of CThread was handled in previous commit.

2 years agoMove Unix signal processing to a dedicated thread.
Alexey Sokolov [Sat, 31 Oct 2015 21:08:52 +0000 (21:08 +0000)] 
Move Unix signal processing to a dedicated thread.

2 years agoAdd a comment for #820 and #1012
Alexey Sokolov [Sat, 5 Dec 2015 18:04:32 +0000 (18:04 +0000)] 
Add a comment for #820 and #1012

2 years agoFix style a bit.
Alexey Sokolov [Sat, 5 Dec 2015 17:54:23 +0000 (17:54 +0000)] 
Fix style a bit.

2 years agoAdd SNI client support
Adam [Fri, 4 Dec 2015 02:10:45 +0000 (21:10 -0500)] 
Add SNI client support

Close #1200

2 years agoFix bad merge of Csocket submodule
Alexey Sokolov [Mon, 30 Nov 2015 08:19:04 +0000 (08:19 +0000)] 
Fix bad merge of Csocket submodule

2 years agoMerge branch 'master' into notify
Alexey Sokolov [Mon, 30 Nov 2015 08:02:47 +0000 (08:02 +0000)] 
Merge branch 'master' into notify

Conflicts:
    test/Integration.cpp

2 years agoSmall change for test of notify_connect for better variety
Alexey Sokolov [Mon, 30 Nov 2015 08:00:51 +0000 (08:00 +0000)] 
Small change for test of notify_connect for better variety

2 years agoFix test after fixing #1190
Alexey Sokolov [Sun, 29 Nov 2015 12:26:17 +0000 (12:26 +0000)] 
Fix test after fixing #1190

2 years agoCall CTCP callback for actions too, as it was before switch to CMessage.
Alexey Sokolov [Sun, 29 Nov 2015 00:56:26 +0000 (00:56 +0000)] 
Call CTCP callback for actions too, as it was before switch to CMessage.

Partyline had both of callbacks, one of which is redundant.

Fix #1134
Fix #1190

2 years agoTravis: notify #znc-dev through ZNC-Linker
Alexey Sokolov [Sat, 28 Nov 2015 19:19:37 +0000 (19:19 +0000)] 
Travis: notify #znc-dev through ZNC-Linker

2 years agoTest notify_connect module
Oleh Prypin [Fri, 27 Nov 2015 10:19:11 +0000 (12:19 +0200)] 
Test notify_connect module

2 years agoMerge pull request #1192 from nospampleasemam/support-separate-sslkeyfile
Alexey Sokolov [Fri, 27 Nov 2015 01:38:45 +0000 (01:38 +0000)] 
Merge pull request #1192 from nospampleasemam/support-separate-sslkeyfile

support for separate SSLKeyFile configuration

2 years agoShow client identification in notify_connect module
Oleh Prypin [Thu, 26 Nov 2015 15:00:30 +0000 (17:00 +0200)] 
Show client identification in notify_connect module

2 years agoDon't bump compiler requirements from GCC 4.7 to GCC 4.8 yet.
Alexey Sokolov [Thu, 26 Nov 2015 14:01:26 +0000 (14:01 +0000)] 
Don't bump compiler requirements from GCC 4.7 to GCC 4.8 yet.

Fix #1189

2 years agosupport separate SSLKeyFile & SSLDHParamFile configuration
Dylan Lloyd [Tue, 24 Nov 2015 04:32:06 +0000 (20:32 -0800)] 
support separate SSLKeyFile & SSLDHParamFile configuration

2 years agoRevert "znc.service.in: start after network-online.target"
Alexey Sokolov [Wed, 25 Nov 2015 00:04:51 +0000 (00:04 +0000)] 
Revert "znc.service.in: start after network-online.target"

This reverts commit 43f2253f2ddc71269220f053778cbec876670886.

See https://github.com/znc/znc/issues/1165#issuecomment-159006828 and above.

2 years agomodperl: provide operator "" for ZNC::String
Alexey Sokolov [Mon, 23 Nov 2015 09:57:48 +0000 (09:57 +0000)] 
modperl: provide operator "" for ZNC::String

2 years agoTeach modperl and modpython about CMessage and new hooks which accept it.
Alexey Sokolov [Sun, 22 Nov 2015 23:38:04 +0000 (23:38 +0000)] 
Teach modperl and modpython about CMessage and new hooks which accept it.

Fix #1084
Fix #1085

2 years agoFix behavior of HALTCORE and HALTMODS for On*BufferPlayLine after introduction of...
Alexey Sokolov [Sun, 22 Nov 2015 23:36:03 +0000 (23:36 +0000)] 
Fix behavior of HALTCORE and HALTMODS for On*BufferPlayLine after introduction of CMessage.

2 years agoMove Message assertions to special cast operators.
Alexey Sokolov [Sat, 21 Nov 2015 12:13:54 +0000 (12:13 +0000)] 
Move Message assertions to special cast operators.

Don't use static_cast directly anymore, but use these operators.

2 years agoMove Message sizes asserts to their definitions, and add missing ones.
Alexey Sokolov [Sat, 21 Nov 2015 10:50:52 +0000 (10:50 +0000)] 
Move Message sizes asserts to their definitions, and add missing ones.

2 years agoFix include guard of Message.h
Alexey Sokolov [Sat, 21 Nov 2015 10:35:03 +0000 (10:35 +0000)] 
Fix include guard of Message.h

2 years agoRevert "znc.service.in: add datadir & instructions"
Alexey Sokolov [Sat, 21 Nov 2015 00:40:24 +0000 (00:40 +0000)] 
Revert "znc.service.in: add datadir & instructions"

This reverts commit 28f7f576664ecd2d2f1eba7b49ce5fa81b899a18.

Close #1165

2 years agoMerge pull request #1184 from TingPing/tingping/servicefile
Alexey Sokolov [Sun, 15 Nov 2015 23:34:38 +0000 (23:34 +0000)] 
Merge pull request #1184 from TingPing/tingping/servicefile

Fix bindir in service file

2 years agoFix bindir in service file
Patrick Griffis [Sun, 15 Nov 2015 23:19:18 +0000 (18:19 -0500)] 
Fix bindir in service file

2 years agoMerge pull request #1166 from Mikaela/systemd
Alexey Sokolov [Sun, 15 Nov 2015 22:28:51 +0000 (22:28 +0000)] 
Merge pull request #1166 from Mikaela/systemd

znc.service.in: add datadir & instructions

2 years agoMerge branch '1.6.x'
Alexey Sokolov [Sun, 15 Nov 2015 18:21:11 +0000 (18:21 +0000)] 
Merge branch '1.6.x'

Conflicts:
ChangeLog.md
configure.ac
third_party/Csocket

2 years agoMerge branch '1.6.x' of github.com:znc/znc into 1.6.x
Alexey Sokolov [Sun, 15 Nov 2015 18:00:48 +0000 (18:00 +0000)] 
Merge branch '1.6.x' of github.com:znc/znc into 1.6.x

2 years agoRevert version changes after releasing 1.6.2 to 1.6.x
Alexey Sokolov [Sun, 15 Nov 2015 17:59:43 +0000 (17:59 +0000)] 
Revert version changes after releasing 1.6.2 to 1.6.x

2 years agoIncrease the version number to 1.6.2
Alexey Sokolov [Sun, 15 Nov 2015 17:36:31 +0000 (17:36 +0000)] 
Increase the version number to 1.6.2

2 years agoznc.service.in: add datadir & instructions
Mikaela Suomalainen [Sat, 24 Oct 2015 09:45:40 +0000 (12:45 +0300)] 
znc.service.in: add datadir & instructions

Closes #1165

2 years agoMerge pull request #1176 from KindOne-/master
Alexey Sokolov [Sun, 8 Nov 2015 16:47:34 +0000 (16:47 +0000)] 
Merge pull request #1176 from KindOne-/master

Add test for controlpanel module