Commit Graph

77 Commits

Author SHA1 Message Date
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
J-P Nurmi
21c93c1658 controlpanel: $user and $network (#847)
IMHO these placeholder names are the most obvious choice and easiest
to remember. For old-timers and to retain compatibility, $me is still
supported. For the advanced users there's also $net for convenience.
2015-02-28 01:10:58 +01:00
J-P Nurmi
75b210e841 Search'n'replace remaining NULL occurrences (#816) 2015-02-26 20:58:01 +01:00
J-P Nurmi
36a03ce29f Fix dead assign/init found by clang static analyzer
Value stored to 'pUser' (during its initialization) is never read
2015-02-26 08:32:49 +01:00
Alexey Sokolov
f353c7aeef Merge pull request #844 from jpnurmi/delserver
controlpanel: add delserver command (closes #810)
2015-02-25 22:01:27 -08:00
ManiacTwister
f27109f1b4 Implemented StripControls for channel messages and notices 2015-02-23 22:14:58 +01:00
J-P Nurmi
00b1a7eedf Use CString::StartsWith()
Replace the use of deprecated CString::Equals(str,bool,int) by
CString::StartsWith(str,cs) which is more pleasant to read.
2015-02-18 00:42:25 +01:00
J-P Nurmi
8f593cb37b controlpanel: add delserver command (closes #810) 2015-02-03 23:46:53 +01:00
Falk Seidel
2e29d49a53 Welcome to 2015 2014-12-31 11:28:38 +01:00
Alexey Sokolov
9e05bb1917 Make list of vars in controlpanel's help compact 2014-12-18 10:31:09 +00:00
J-P Nurmi
6877b9f88f controlpanel: get/setnetwork joindelay 2014-10-15 22:24:42 +02:00
J-P Nurmi
1bacec1dd3 Modules: use public API
Avoid accessing protected member variables directly, so
there's a chance of cleaning up the module API later.
2014-10-06 21:51:36 +02:00
J-P Nurmi
d9ae3fa7c8 controlpanel: rename GetUser() to FindUser()
Avoids conflict with CModule::GetUser()
2014-10-06 21:50:22 +02:00
J-P Nurmi
6457bd6dc1 Fix #680 - make channels follow user-level settings when appropriate 2014-09-30 00:34:01 +02:00
J-P Nurmi
a4b0bee2bc controlpanel: allow wildcards for getchan & setchan 2014-09-26 22:34:35 +02:00
Alexey Sokolov
eb244ad2f5 Merge pull request #669 from jpnurmi/help
Allow wildcards in help command args
2014-09-13 23:41:56 +01:00
J-P Nurmi
364ac84642 controlpanel: add support for network specific quit messages (#273) 2014-09-13 23:44:55 +02:00
J-P Nurmi
69e65ea45e Allow wildcards in help command args
Supports the help command for *status, all modules that are using
CModCommand as appropriate, and *controlpanel get/set variables.
2014-09-13 22:46:54 +02:00
J-P Nurmi
df08352148 Revise *controlpanel help output
Make the output easier to read by wrapping mandatory argument names
with angle brackets (just like in *status help), and make it possible
to output help for given command(s). Furthermore, output only relevant
variable lists and align casing & arguments in general help & command
specific usage output.
2014-09-07 10:54:00 +02:00
J-P Nurmi
e48fe0a4fc controlpanel: make delchan support wildcards (resolves #609) 2014-08-18 22:27:06 +02:00
J-P Nurmi
5bed1e537c controlpanel: add support for AutoClearQueryBuffer & MaxQueries 2014-08-04 10:04:21 +02:00
Uli Schlachter
74c91e8cfa controlpanel: Check if adding a new channel succeeded
Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-04-13 23:12:03 +02:00
Alexey Sokolov
90bc025906 Add encoding to controlpanel's help 2014-04-08 07:39:01 +01:00
Richard Schwab
e77edb409e Fix *controlpanel not checking whether the bindhost is in the whitelist 2014-03-18 14:04:15 +01:00
Richard Schwab
530bbb5b0d Fix BindHost in SetNetwork in *controlpanel to check permissions 2014-03-17 09:30:04 +01:00
Richard Schwab
cdd16f3933 Add BindHost to Get/SetNetwork in *controlpanel 2014-03-16 17:12:04 +01:00
Alexey Sokolov
55c299fec6 Support encodings in *controlpanel 2014-01-27 00:27:07 +00:00
Alexey Sokolov
be6094a464 Merge commit 'refs/pull/445/head' of github.com:znc/znc 2014-01-18 17:27:07 +00:00
Andrew Northall
0f8441fdff Channel name cannot contain space 2014-01-18 03:24:23 +00:00
Falk Seidel
f19b4caa43 Welcome to 2014 - year 10 with ZNC 2013-12-31 10:10:55 +01:00