Commit Graph

106 Commits

Author SHA1 Message Date
Alexey Sokolov
81e3c908ad Fix include 2025-04-21 01:01:42 +01:00
Alexey Sokolov
63d10ccb17 Add support to connect to server via unix socket
The syntax for AddServer command and config is chosen to be unix:/path or unix:ssl:/path

For security reasons, only admins can add such servers, to prevent users from poking around the file system.
2025-04-20 22:40:20 +01:00
Peter
44e4b95a20 Welcome to 2025 (#1929) 2025-02-07 23:23:45 +00:00
Falk Rund
17a004aa0b Welcome to 2024
[skip ci]
2023-12-31 21:09:25 +01:00
Falk Rund
f9fd05c307 Welcome to 2023 2023-01-01 06:49:00 +01:00
Falk Rund
6402d241ac Welcome to 2022
The same procedure as last year, Miss Sophie?
Same procedure as every year, James.
2022-01-01 14:05:32 +01:00
Bradley Shaw
fe475e1ef0 Add more deny options
DenySetIdent - Denies setting ident

DenySetNetwork - Denies adding/removing networks/servers

DenySetRealName - Denies setting realname

DenySetQuitMsg - Denies setting quitmsg

DenySetCTCPReplies - Denies adding/removing CTCP replies
2021-07-03 17:16:42 +01:00
Alexey Sokolov
4393b9d906 Fix controlpanel output
Accidentally broken in fe8d447a60
2021-04-08 08:49:21 +01:00
MAGIC
99687b0f24 Welcome to 2021 2021-01-01 19:37:07 +01:00
Chris Tyrrel
6ac1e9e8fa Resolves #1693
Added NoTrafficTimeout User variable to the list of User variables in the controlpanel module.
2020-03-30 18:07:20 -06:00
MAGIC
9081aa971d Welcome to 2020 2020-01-02 00:36:05 +01:00
girst
fe8d447a60 listify two-column tables
excluded are the Q and partyline modules, as they are deprecated. There
are some tables that have more than two columns, but could likely be
easily modified, but this will be attempted at a later time.
2019-05-29 18:49:18 +02:00
Alexey Sokolov
8d309bbb3d Merge branch '1.7.x' 2019-03-30 16:17:59 +00:00
Alexey Sokolov
64613bc8b6 Don't crash if user specified invalid encoding.
This is CVE-2019-9917
2019-03-22 00:22:00 +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
Chris Tyrrel
327969cc55 controlpanel: Add missing return to ListNetMods
Close #1589
2018-08-08 00:00:55 +01: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
Uli Schlachter
5c1fb61f45 controlpanel: Change "double" to "number" (#1468)
For a programmer, "double" makes sense as a data type, but for a human this is just a number.
2017-12-02 23:29:00 +00:00
Uli Schlachter
6689705756 Add missing space in "hasno"
Fixes the remaining part of #1465.
2017-11-27 19:45:02 +00:00
Alexey Sokolov
70bf4ad9ba Fix wrong English text, close #1465 2017-11-26 22:12:09 +00:00
Alexey Sokolov
b894808163 Translateable controlpanel, #1354 2017-08-27 11:24:11 +01:00
Alexey Sokolov
4917fcbda6 More translateable strings, ref #1354 2017-08-26 23:00:54 +01: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
Jos Ahrens
5a89869312 Clearer ControlPanel/{Add,Del}Server syntax usage help (#1428) 2017-07-18 21:16:16 +01:00
Phansa
3189ce7f8a Welcome to 2017
Welcome to 2017

temp

temp2
2017-03-12 20:34:26 -04:00
Alexey Sokolov
2fcde9f2e1 Fix a couple of issues pointed out by https://scan.coverity.com/ 2016-12-26 17:22:09 +00:00
Alexey Sokolov
b666931883 Add an option to change ping timeout time.
Fix #979
2016-12-26 15:49:26 +00: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
Alexey Sokolov
15ae561848 Merge branch '1.6.x' 2016-03-04 22:27:51 +00:00
Alexey Sokolov
0ff90ea451 Fix error in *controlpanel when setting bindhost of another user.
Thanks to Kult for reporting this.
2016-03-04 22:24:46 +00:00
Alexey Sokolov
0459f67b1d Configure user language in controlpanel and webadmin 2016-01-31 20:09:19 +00:00
Falk Seidel
8f73840e74 Welcome to 2016
🎆  Happy 2016 🎆
2016-01-01 20:11:21 +01:00
Alexey Sokolov
16a8c77737 Replace virtual with override where possible.
Using clang-tidy
2015-12-08 20:51:50 +00:00
Alexey Sokolov
d185d6f22d 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 :(
2015-12-07 00:53:30 +00:00
Alexey Sokolov
3861b6a583 Fix several comments broken by clang-format 2015-12-07 00:53:01 +00:00
Alexey Sokolov
33b0627d75 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.
2015-12-07 00:53:01 +00:00
Chris Tyrrel
2b4f3bdac8 Fix recently introduced crash in controlpanel.
See #1051
2015-10-26 00:16:34 +00:00
Chris Tyrrel
c2626f6052 ControlPanel: Move syntax of GetNetwork and SetNetwork 2015-08-30 11:19:21 -06:00
J-P Nurmi
d19a040f2d Remove flawed Add/Del/List/BindHost(s) (close #983) 2015-08-17 15:35:29 +02:00
Chris Tyrrel
ae0d0937e2 controlpanel: renamed chan setting 'buffer' to 'buffersize'
close #1029
2015-08-14 19:03:07 +02:00
J-P Nurmi
1f8de3bf39 controlpanel: C++11 range-based for loops 2015-08-13 13:00:59 +02:00
J-P Nurmi
b16faf5058 Merge pull request #990 from jpnurmi/reset
Allow reseting channel specific AutoClearChanBuffer & Buffer settings
2015-08-01 12:30:36 +02:00
J-P Nurmi
496a132e32 Resolve #967: separate chan & query buffer size settings 2015-07-19 00:31:10 +02:00
J-P Nurmi
0d75018157 Allow reseting channel specific AutoClearChanBuffer & Buffer settings
The trick is to set the value to "-" in controlpanel. Notice that
controlpanel supports wildcards, so this can be used to easily
reset all channels back to defaults if desired.
2015-07-08 22:56:18 +02:00
Thomas Ward
7f6380ae8b Update 'User Deleted' message to match format
The User Deleted output for a success does not match the rest of the output formats for other commands and needs to match the same 'standard' for outputs.
2015-03-30 11:36:12 -04:00
J-P Nurmi
a5b4a29c00 Revert StripControls implementation (#850)
This reverts commits 27d78795a7 and
f27109f1b4. It was decided that the
functionality is provided by a separate module instead, to avoid
unnecessarily bloating the core.
2015-03-04 09:50:00 +01:00