Commit Graph

3859 Commits

Author SHA1 Message Date
Alexey Sokolov c8edabb035 Fix memory leak when reading invalid znc.conf
Found by https://scan.coverity.com/
2015-10-30 14:36:01 +00:00
Alexey Sokolov f6aa35c6fb Really fix #528
The previous fix (5e6e3be3) left a possibility to use-after-delete,
though it has been much harder to accidentally trigger.

If AddChan(pChan) fails, it deletes pChan, so the new crash was
happening during showing of error message.

Test for this is at master branch: 9777a1a667

Thanks to https://scan.coverity.com/ for pointing at this.
2015-10-30 01:16:29 +00:00
Alexey Sokolov 0022fc6162 Merge pull request #1153 from Mikaela/travis-trusty
.travis.yml: use Ubuntu Trusty & #znc-dev
2015-10-16 20:28:42 +01:00
Mikaela Suomalainen 10d92e539b .travis.yml: use Ubuntu Trusty & #znc-dev
http://blog.travis-ci.com/2015-10-14-opening-up-ubuntu-trusty-beta/ and
we have been talking forever about moving notifications to #znc-dev and
there have been multiple PRs for that.

-y is apparently needed with trusty or apt hangs forever waiting for
yes/no.
2015-10-16 10:02:59 +03:00
Alexey Sokolov 0b89db6753 Merge pull request #1113 from Mikaela/travis
.travis.yml: enable fast_finish
2015-10-02 20:42:24 +01:00
Alexey Sokolov 30cbb5ab39 Merge pull request #1101 from Mikaela/perform-descriptions
perform: add descriptions for commands
2015-09-28 07:43:29 +01:00
Mikaela Suomalainen aa631a5ee7 perform: add descriptions for commands
Thanks @ChasedSpade

Closes #1100
Closes #1102
2015-09-21 16:46:17 +03:00
Mikaela Suomalainen f2c53b64e1 .travis.yml: enable fast_finish
When fast_finish is True, Travis will inform that the build has failed
when one build fails which is usually desirable instead of waiting for
everything to finish.

However builds that haven't finished yet will continue, this doesn't
stop them or do anything else to them.

`travis lint` passes so,

[CI SKIP]
2015-09-21 16:40:45 +03:00
Mikaela Suomalainen c8ab811a29 cert: add description for the "info" command 2015-09-20 23:31:37 +02:00
J-P Nurmi 3c2ec45d4c Fix more warnings [-Winconsistent-missing-override] 2015-09-20 17:30:48 +02:00
Alexey Sokolov 9493964a3d Merge pull request #1087 from Mikaela/route_replies
route_replies: make the timeout error more clear
2015-09-20 15:16:13 +01:00
Alexey Sokolov 073e538094 Merge pull request #1104 from Mikaela/module-descriptions
Add descriptions for missing commands in lastseen & certauth & route_replies
2015-09-20 15:14:14 +01:00
Mikaela Suomalainen f1cc0e4492 lastseen & certauth & route_replies: add missing descriptions 2015-09-20 16:28:50 +03:00
Mikaela Suomalainen 535d28bf32 route_replies: make the error more clear 2015-09-20 16:27:31 +03:00
J-P Nurmi 3058a0e69a Fix warnings [-Winconsistent-missing-override] 2015-09-19 21:01:20 +02:00
Mikaela Suomalainen f54ad1f220 perform: say "number" instead of "nr"
I think it's inconsistent that perform uses abbreviation "nr" of "number"
while it talks about "command" instead of "cmd".
2015-09-19 16:32:40 +02:00
KindOne 6aed12f17d autovoice: Check for autovoices when we are opped.
Fixes #120
2015-09-17 23:17:00 +02:00
Jos Ahrens b67f9182d6 Fix stickychan joining inaccessable channels.
Channels that raise this error are unlikely to ever be unblocked,
either due to a jupe, or because the name contains illegal characters.
2015-09-09 18:47:56 +02:00
Alexey Sokolov 9e1b1f5aee Remove efnet from 1.6 branch's travis as well 2015-09-04 20:06:14 +01:00
Jos Ahrens 0b32da4ccc Always try to delete an uppercase CTCP response in DelCtcpReply
AddCtcpReply always adds an CTCP response in uppercase, it is only fair we do the same in DelCtcpReply
2015-09-01 21:37:14 +02:00
J-P Nurmi d2c462ae03 Fix yet another startup failure with awaynick & simple_away
The detection whether simple_away is already on the list of loaded
modules failed when the simple_away load line contained arguments.

Close #954
2015-08-29 21:13:52 +02:00
J-P Nurmi 263f278a11 Merge pull request #1026 from jpnurmi/perms
Fix #124: OnChanMsg(): nick doesn't have perms
2015-08-22 01:14:48 +03:00
Alexey Sokolov 07463d67e3 Fix build on ancient openssl. 2015-08-14 00:31:29 +01:00
J-P Nurmi 0220979ccf Fix #124: OnChanMsg(): nick doesn't have perms 2015-08-11 23:29:19 +02:00
Alexey Sokolov 4c70b6405f Make error message from ./bootstrap.sh less confusing. 2015-08-11 20:57:41 +01:00
J-P Nurmi 45183612c8 Fix CClient::GetNickMask()
A regression introduced by cebc093. A potentially empty network
specific bind _host_ should not be used as nick mask _ident_.
2015-08-11 14:06:41 +02:00
Alexey Sokolov 65e36c8daf s/NULL/nullptr/ in modpython's codegen.pl 2015-08-05 00:17:22 +01:00
Alexey Sokolov eda13bd1f0 Update codegen.pl too. See #1017 2015-08-05 00:10:58 +01:00
Alexey Sokolov b8330296a2 Fix memory leak in modpython.
Update typemaps for CString from latest SWIG.

The relevant change is "free p;" -> "delete p;"
CString object itself was deleted, but its destructor wasn't called,
so it couldn't free the underlying character data.

Fix #1017
2015-08-04 23:44:48 +01:00
J-P Nurmi de6ad06bd2 Merge branch '1.6.1' into 1.6.x 2015-08-04 01:14:31 +02:00
Alexey Sokolov aa6e7e7428 Increase the version number to 1.6.1 znc-1.6.1 2015-08-03 23:59:17 +01:00
J-P Nurmi ad99d5f46e Merge pull request #1013 from DarthGandalf/cap-end
Support "CAP :END"
2015-08-01 12:33:26 +02:00
J-P Nurmi 5c2e040cb8 Merge pull request #1009 from jpnurmi/keys
Fix #1008: Channel keys get saved in a very wrong way
2015-07-31 23:49:05 +02:00
J-P Nurmi b217653710 Merge pull request #1010 from jpnurmi/modules_online
Fix #1007: modules_online uses wrong ident
2015-07-31 21:52:41 +02:00
Alexey Sokolov 89e99bfe35 Support "CAP :END"
Thanks to jaybe for complaining about this.
2015-07-30 22:01:11 +01:00
J-P Nurmi 0058b47d42 Fix #1007: modules_online uses wrong ident 2015-07-28 12:27:01 +02:00
J-P Nurmi b2c83321ef Fix #1008: Channel keys get saved in a very wrong way 2015-07-27 02:06:21 +02:00
J-P Nurmi 757ba2bee7 ZNC 1.6.1-rc1 znc-1.6.1-rc1 2015-07-25 23:12:51 +02:00
Alexey Sokolov 8a831adf1b '-L"/path"' -> '-L/path' 2015-07-23 01:11:16 +01:00
Alexey Sokolov baa798ce9f Fix -DVERSION_EXTRA="foo"
It was broken since 58a34fa5ad (since ZNC 1.2)
2015-07-21 22:47:09 +01:00
Alexey Sokolov 34d9183ff1 Hint in webadmin how to delete current port 2015-07-10 20:01:12 +01:00
Alexey Sokolov e2222e3a18 Merge pull request #989 from Mkaysi/readme
README: fix formatting & links
2015-07-10 08:11:24 +01:00
Mikaela Suomalainen 798216957b README: fix formatting & links
[CI SKIP]
2015-07-10 09:11:10 +03:00
Alexey Sokolov bae8724a16 Fix build after previous commit... 2015-07-07 22:26:56 +01:00
Alexey Sokolov 326040cf08 Fix query buffer size for users who has 0 in default channel buffer size.
Users who upgrade from <=1.4 to 1.6.0 and have configured 0 for channel buffer, were silently not getting any queries while disconnected anymore.
Thanks to jpnurmi for the idea how to bandaid this in 1.6.x branch.
Proper fix will go to 1.7 and will take form of separate settings for channel and query buffers.

See #967
2015-07-07 20:58:56 +01:00
Pavel Djundik 3bc7b820ac Don't print local ip address on 404 page, fixes #944
(cherry picked from commit 01279a4efa)
2015-07-07 20:07:02 +01:00
Alexey Sokolov fce3d781bb Mention ExpandString in CTCP replies in webadmin 2015-06-05 08:04:33 +01:00
Alexey Sokolov d335c3cdf6 configure.ac: specify required compiler versions
Close #956
2015-04-28 21:36:25 +01:00
J-P Nurmi 28393c309b Fix #954: Startup failure when simple_away is loaded after awaynick 2015-04-28 21:36:25 +01:00
Alexey Sokolov f8d2c32e9a Add non-minified jQuery's source.
jQuery's license (MIT) does *NOT* require this.
But Debian is not happy without it.
2015-04-26 19:21:40 +01:00