Commit Graph

864 Commits

Author SHA1 Message Date
Alexey Sokolov a4a5aeeb17 Don't let web skin name ../../../../ access files outside of usual skins directories.
Thanks for Jeriko One <jeriko.one@gmx.us> for finding and reporting this.
2018-07-14 07:09:26 +01:00
Alexey Sokolov d22fef8620 Better cleanup lines coming from network.
Thanks for Jeriko One <jeriko.one@gmx.us> for finding and reporting this.
2018-07-14 07:08:50 +01:00
Alexey Sokolov a7bfbd9381 Don't let attackers inject rogue values into znc.conf
Because of this vulnerability, existing ZNC users could get Admin
permissions.

Thanks for Jeriko One <jeriko.one@gmx.us> for finding and reporting this.
2018-07-14 07:05:57 +01:00
ZNC-Jenkins 2058aa0fa6 Update translations from Crowdin for es_ES 2018-07-02 00:25:44 +00:00
ZNC-Jenkins 87fe01d3aa Update translations from Crowdin for ru_RU 2018-06-19 21:24:58 +00:00
ZNC-Jenkins 3b6980cb85 Update translations from Crowdin for de_DE es_ES id_ID nl_NL pt_BR ru_RU 2018-06-19 21:04:33 +00:00
Alexey Sokolov 6d1e77bb52 Revert "transperancy: Make the user aware that DEBUG mode is enabled."
This reverts commit ab501767a1.

Superceded by admindebug module
2018-06-18 00:41:18 +01:00
ZNC-Jenkins cc3f8499a7 Update translations from Crowdin 2018-06-16 00:25:59 +00:00
ZNC-Jenkins bot 38a007d5c5 Update translations from Crowdin (#1551) 2018-06-15 19:34:12 +01:00
Baruch Siach e567f4cb73 Fix build without SSL support
The <memory> headers is needed for unique_ptr even when SSL is not
enabled. This fixes the following build failure:

src/Utils.cpp: In static member function 'static bool CUtils::CheckCIDR(const CString&, const CString&)':
src/Utils.cpp:674:5: error: 'unique_ptr' is not a member of 'std'
     std::unique_ptr<addrinfo, decltype(deleter)> aiHost(aiHostC, deleter);
     ^

Close #1554
2018-06-10 21:09:07 +01:00
ZNC-Jenkins bot 633e695aba Update translations from Crowdin (#1544) 2018-06-04 22:38:33 +01:00
Alexey Sokolov e531fe870a Replace the deprecated overload of CMessage::GetParam 2018-06-01 22:22:44 +01:00
Alexey Sokolov 5b7daac2f0 Rename one of overloads of CMessage::GetParams to GetParamsColon 2018-06-01 22:22:44 +01:00
ZNC-Jenkins bot 309eafa6f7 Update translations from Crowdin (#1540) 2018-05-31 08:40:31 +01:00
Alexey Sokolov 0cbe9d783d Fix error message about wrong module type.
Regression from 1.6
2018-05-28 21:21:29 +01:00
ZNC-Jenkins bot ddb1564aa8 Update translations from Crowdin (#1534) 2018-05-14 22:33:49 +02:00
ZNC-Jenkins bot f334ff1c12 Update translations from Crowdin (#1529) 2018-05-09 08:41:16 +01:00
ZNC-Jenkins c5e7ec2aa1 Update translations from Crowdin and remove old .po files without full locale name 2018-05-08 21:52:38 +01:00
Alexey Sokolov 6f5e39b166 Fix language selector. It didn't work. 2018-05-07 16:14:16 +01:00
Alexey Sokolov 80b96f3d46 Fix redirecting message
Thanks rockytvbr
2018-05-06 22:05:12 +01:00
ZNC-Jenkins bot bbc5cfe76d Update translations from Crowdin (#1522) 2018-05-06 00:23:36 +01:00
ZNC-Jenkins bot 9f196ee48b Update translations from Crowdin (#1515) 2018-04-16 21:04:05 +01:00
Alexey Sokolov 6b6bbdcaeb Merge pull request #1513 from throwaway-user/master
Don't echo-message and self-message messages to *status and *modules
2018-04-15 10:15:21 +01:00
ZNC-Jenkins bot 19a53c0994 Update translations from Crowdin (#1509) 2018-04-13 08:27:28 +01:00
Nobody Atoll 55d44c21a7 Fix echo-message regression from 1.6.x
This patch prevents PRIVMSGs from clients frmo being echoed to other clients if their target has the status prefix.
2018-04-12 18:34:15 -04:00
ZNC-Jenkins bot b9743d8320 Update translations from Crowdin (#1502) 2018-04-04 01:40:11 +01:00
Alexey Sokolov 9de990715b More translateable strings (fix #1354) 2018-04-03 22:31:20 +01:00
Alexey Sokolov 2052d61952 Merge branch 'master' of github.com:znc/znc 2018-04-01 12:07:18 +01:00
Alexey Sokolov 1e23a36e1d More translateable strings (#1354) 2018-04-01 12:06:29 +01:00
Alexey Sokolov fd15c43711 Update date in comment about default SSL ciphers 2018-04-01 00:37:06 +01:00
Alexey Sokolov 1eceb5a5c7 More translateable strings (#1354) 2018-04-01 00:35:51 +01:00
ZNC-Jenkins bot 82a9325375 Update translations from Crowdin (#1500) 2018-03-27 23:30:28 +01:00
Alexey Sokolov 5b3d2c1c19 More translateable strings (#1354) 2018-03-26 23:51:31 +01:00
Alexey Sokolov f1f95dd6d8 Merge branch 'master' of github.com:znc/znc 2018-03-26 08:47:50 +01:00
Alexey Sokolov 1665c8640a Fix plurals in some /znc commands (#1354) 2018-03-26 08:47:27 +01:00
ZNC-Jenkins bot c8dabadebb Update translations from Crowdin (#1499) 2018-03-26 08:46:59 +01:00
Alexey Sokolov 6ca2d5caa0 More translateable strings, #1354 2018-03-25 22:57:05 +01:00
Alexey Sokolov 5d603b0932 Fix non-default location of znc.pem when upgrading configs from pre-1.7.
New options SSLDHParamFile and SSLKeyFile were pointing at the default
location instead of the same as SSLCertFile.

Thanks to @xelra for the report.
2018-03-15 22:14:00 +00:00
ZNC-Jenkins bot 9791d2c18e Update translations from Crowdin (#1493) 2018-03-12 08:10:14 +00:00
Alexey Sokolov ec7e07e7f0 Reflect absense of ABI in cygwin DLL name 2018-03-12 00:05:10 +00:00
Alexey Sokolov a8d2df3852 Add PutIRC(CMessage) and PutIRCRaw()
Close #1193
2018-03-11 16:44:49 +00:00
Alexey Sokolov 8da45322f0 Fix CClient::PutClient comment, add CClient::PutClientRaw 2018-03-11 15:54:20 +00:00
Alexey Sokolov 15ccaca41a Stop buffering and echoing CTCP requests and responses to other clients, except for /me
Fix interaction between self-message and CTCP:
CTCP request from client A gets reflected from ZNC to client B, because
B has self-message. B sees this as a usual CTCP request (from the same
nick), and replies (to the same nick). ZNC reflects that response to A
because A has self-message, and also passes that response to IRC server,
which sends that response back to ZNC, which sends it to its both clients.

Close #1488
2018-02-18 23:04:14 +00:00
Alexey Sokolov 658a6e6f90 Lie to modules less: make OnUserRaw strings raw 2018-02-18 22:14:18 +00:00
Alexey Sokolov 5cb50eccd1 Save channel key on user JOIN even if user was not on the channel yet,
which is the usual case.

Fix #1223
2018-02-14 08:30:21 +00:00
Alexey Sokolov eccf5911ae Fill Message.GetChan() in user-originated module callbacks if the channel exists.
Close #1402
2018-02-11 15:13:11 +00:00
Alexey Sokolov 008170b153 Merge branch 'master' of github.com:znc/znc 2018-02-10 15:58:20 +00:00
Alexey Sokolov a2470b3dd3 Make chan modes and permissions to be char instead of unsigned char.
Deprecate old module hooks which accept mode as unsigned char.

SWIG handles unsigned char as int, but char as a string.
Before this commit, usage of HasPerm from perl modules required this:
either $chan->HasPerm(ord('@')) or $chan->HasPerm(ord($ZNC::CChan::Op)).
Now ord() is not necessary, and these calls work too:
$chan->HasPerm('@') and $chan->HasPerm($ZNC::CChan::Op).

Fix #1486
2018-02-10 15:55:55 +00:00
Andy Fiddaman 6362844853 Stop creating files with odd permissions.
bits are being set in file mode rather than open flags. As a result file permissions get strange bits set.

```
build# ls -l /etc/opt/znc/znc.conf
-rwS------   1 znc      znc        1.62K Feb  9 14:47 /var/opt/ooce/znc/configs/znc.conf
build# stat -c %a /etc/opt/znc/znc.conf
4600
```
2018-02-09 22:25:06 +00:00
ZNC-Jenkins fcc710b4b8 Update translations from Crowdin 2018-01-19 19:39:46 +00:00