Commit Graph

464 Commits

Author SHA1 Message Date
Alexey Sokolov
6295fffee5 ZNC 1.8.0-alpha1 2020-03-29 15:23:47 +01:00
Alexey Sokolov
f3d7922499 Update copyright in files which were missing in the previous update 2020-01-05 11:37:51 +00:00
MAGIC
9081aa971d Welcome to 2020 2020-01-02 00:36:05 +01:00
Alexey Sokolov
c0e71184be Backport SSL changes from asio branch (#1639).
This shouldn't change any behavior.
2019-12-29 13:03:52 +00:00
Aspen (linudaemon)
95369455fc Rework MODE/RPL_CHANMODEIS handling for trailing args (#1661)
Some servers may send a colon even if the last parameter doesn't need it, currently this leads to issues with permission/mode tracking, as the core doesn't handle the colon properly.

This fix replaces reconstructing the parameter string with just passing a vector of the relevant parameters to CChan::SetModes() and adds overrides for CChan::SetModes() and CChan::ModeChange() that accept the vector instead.

Clean up uses of old CModeMessage::GetModes()
2019-08-08 21:54:49 +01:00
Alexey Sokolov
2c951bcac1 Merge branch 'master' of github.com:znc/znc 2019-06-15 02:28:30 +01:00
Alexey Sokolov
ac66d48430 Merge branch '1.7.x' 2019-06-15 02:02:42 +01:00
Alexey Sokolov
8de9e376ce Fix remote code execution and privilege escalation vulnerability.
To trigger this, need to have a user already.

Thanks for Jeriko One <jeriko.one@gmx.us> for finding and reporting this.

CVE-2019-12816
2019-06-15 02:00:42 +01:00
girst
3988cfef98 ListStyle (compact) replacement for two-column tables
by calling CTable::SetStyle(CTable::ListStyle) one can switch from the
bulky and unreadable-on-narrow-devices-or-nonmonospaced-fonts tables to
a more compact list style of output. The first "column" will be bolded
for better visibility and seperated with a colon from the second.

This is currently designed to replace two column tables only.
2019-05-19 14:03:41 +02:00
Alexey Sokolov
9966bea961 Return version back to 1.7.x 2019-03-30 14:41:01 +00:00
Alexey Sokolov
6b03fac6c1 ZNC 1.7.3-rc1 2019-03-22 00:31:10 +00:00
Alexey Sokolov
855ab8c55d Revert version number to 1.7.x 2019-01-27 09:37:10 +00:00
Alexey Sokolov
2ed4d1b664 ZNC 1.7.2-rc1 2019-01-12 09:08:16 +00:00
Alexey Sokolov
0ab205ccfa Merge pull request #1628 from dgw/welcome-to-2019
Welcome to 2019
2019-01-08 22:50:58 +00:00
dgw
8d5427cf9b Welcome to 2019
What are we going to do today, Brain?

The same thing we do every year, Pinky: Update all the copyright
headers!

[Skip CI]
2019-01-01 17:05:05 -06:00
Pierre Gordon
6af027c5dd Normalize methods with 'UserName' to 'Username' 2019-01-01 16:19:27 -05:00
Pierre Gordon
812b27c268 Normalize variable "sUserName" to "sUsername"
Fixes #1546
2019-01-01 12:31:33 -05:00
Alexey Sokolov
bae80fd383 Return version number to 1.7.x 2018-07-17 22:58:48 +01:00
Alexey Sokolov
9e4d89aaa4 ZNC 1.7.1-rc1 2018-07-14 07:21:12 +01:00
Alexey Sokolov
fda73d8c81 Merge branch '1.7.x' 2018-06-04 22:30:53 +01:00
Alexey Sokolov
94c5707f2e Old clang doesn't understand 2-arg deprecation 2018-06-02 01:52:11 +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
Alexey Sokolov
34b783f1ab Revert "Make version 1.7.x again for 1.7.x branch"
This reverts commit 59cf8aabda.
2018-05-06 00:19:04 +01:00
Alexey Sokolov
59cf8aabda Make version 1.7.x again for 1.7.x branch 2018-05-05 20:49:12 +01:00
Alexey Sokolov
d16817b03a Update git master to be 1.8.x 2018-05-01 22:39:01 +01:00
Alexey Sokolov
4489b1b694 Increase the version number to ZNC 1.7.0 2018-05-01 22:15:45 +01:00
Alexey Sokolov
bfecb524e4 1.7.0-rc1 2018-04-19 23:52:45 +01:00
Alexey Sokolov
6922476fcf ZNC 1.7.0-beta1 2018-04-06 20:25:13 +01:00
Alexey Sokolov
8c60724118 Merge branch 'master' into 1.7.x 2018-04-06 20:22:37 +01:00
Alexey Sokolov
9de990715b More translateable strings (fix #1354) 2018-04-03 22:31:20 +01:00
Alexey Sokolov
1e08e5c702 Move gtest's printer for CString to a place visible to all tests 2018-04-02 12:17:14 +01:00
Alexey Sokolov
10c98e01a8 Why did I make this public? 2018-04-01 12:23:16 +01:00
Alexey Sokolov
1e23a36e1d More translateable strings (#1354) 2018-04-01 12:06:29 +01:00
Alexey Sokolov
1eceb5a5c7 More translateable strings (#1354) 2018-04-01 00:35:51 +01:00
Alexey Sokolov
6ca2d5caa0 More translateable strings, #1354 2018-03-25 22:57:05 +01:00
Alexey Sokolov
fed3ebf0b2 ZNC 1.7.0-alpha2 2018-03-18 11:31:40 +00:00
Alexey Sokolov
f761d367ee ZNC 1.7.0-alpha1 2018-03-12 00:34:07 +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
658a6e6f90 Lie to modules less: make OnUserRaw strings raw 2018-02-18 22:14:18 +00:00
Alexey Sokolov
5cdbe33eaf Add GetText()/SetText() methods to more CMessage types.
They are aliases for existing methods, to simplify code reuse.
2018-02-11 14:10:11 +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
Falk Seidel
d647eaabc0 Welcome to 2018
The same procedure as last year, Miss Sophie?
The same procedure as every year, James.

[skip ci]
2018-01-19 19:38:58 +00:00
Fox Wilson
42939c998f Add "AuthOnlyViaModule" global/user setting
Setting AuthOnlyViaModule on a user causes CheckPass to never return true,
causing all authentication attempts using the configured password to fail, both
on IRC connections and for webadmin. This is useful in situations where an
external module (cyrusauth, certauth, imapauth) handles authentication. Setting
the global AuthOnlyViaModule option causes similar behavior across every
user. If AuthOnlyViaModule is set to true globally, it cannot be overridden
per-user.

Close #1474
Close #331
2017-12-22 14:23:17 +00:00
Vladimir Panteleev
15b1f8d8fa Change format syntax to a simple custom %f/%#f scheme 2017-12-10 09:45:58 +00:00
Vladimir Panteleev
03c4c0b165 Use and propagate microsecond-precision timestamps to FormatTime
This enables sub-second precision timestamp formatting for logs and
clients without server-time.
2017-10-26 00:00:51 +00:00
Vladimir Panteleev
901a21e91b Utils: Add FormatTime overload taking timeval
This overload also supports additional format sequences for formatting
the sub-second part of timeval.
2017-10-26 00:00:50 +00:00
Jos Ahrens
f006e31fed debugging: Add Filter method to hide filter sensitive data 2017-10-02 14:09:45 +02:00
Alexey Sokolov
f885699d1a Make list of languages installed discoverable at runtime.
Stop hardcoding Russian in webadmin.
Limit the setting in controlpanel to the known languages, because
untrusted language code might lead to some interesting vulnerabilities.
2017-08-19 18:09:12 +01:00