Commit Graph

1481 Commits

Author SHA1 Message Date
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
e62ed5f300 modperl & modpython: fix GetType() at module construction time 2015-03-07 21:54:33 +01:00
Alexey Sokolov
4549197301 Merge pull request #881 from Kriechi/improve-stickychan
improve stickychan
2015-03-07 15:24:57 +00:00
Alexey Sokolov
0179e857da Merge branch 'master' of github.com:znc/znc 2015-03-06 20:57:50 +00:00
Alexey Sokolov
e1ac6c49cb Merge branch '1.6.x' 2015-03-06 20:57:18 +00:00
Alexey Sokolov
343035e172 Explain in webadmin why encoding settings are disabled. 2015-03-05 23:13:58 +00: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
a67f929b7d Add stripcontrols module (#387)
This replaces #850. It was decided that the functionality is provided
by a separate module instead, to avoid unnecessarily bloating the core.
2015-03-04 09:47:49 +01:00
J-P Nurmi
05c96a16d1 Merge remote-tracking branch 'origin/1.6.x' 2015-03-01 09:19:01 +01:00
Alexey Sokolov
11c815d5ba Merge pull request #833 from Mkaysi/nickserv
nickserv: use NICKSERV instead of PRIVMSG
2015-02-28 20:59:21 -08:00
J-P Nurmi
1180467a87 Fix chansaver loading
CModules::LoadModule() sets the module type _after_ construction.
The constructor cannot therefore do actions based on the module
type. Move loading to OnLoad().
2015-02-28 21:15:46 +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
Alexey Sokolov
18897e47d9 Merge pull request #897 from jpnurmi/override
Add missing override keywords (#816)
2015-02-26 21:19:41 -08:00
J-P Nurmi
dd0bc69413 Add missing override keywords (#816) 2015-02-27 00:24:02 +01:00
J-P Nurmi
75b210e841 Search'n'replace remaining NULL occurrences (#816) 2015-02-26 20:58:01 +01:00
Thomas Kriechbaumer
8f3f5b4dcc improve stickychan
* save registry on every stick/unstick action
* auto-save if channel key changes
2015-02-26 11:14:08 +00: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
J-P Nurmi
6002bd5c2b Remove unnecessary virtual keyword occurrences
This makes it convenient to 'grep virtual' and 'grep override' :)
2015-02-25 18:33:09 +01:00
J-P Nurmi
539c519cce Mods: use case-insensitive wildcmp() for channel/host matching
Fixes #822
2015-02-23 22:35:46 +01:00
ManiacTwister
27d78795a7 Also strip controls from private messages 2015-02-23 22:15:01 +01:00
ManiacTwister
f27109f1b4 Implemented StripControls for channel messages and notices 2015-02-23 22:14:58 +01:00
J-P Nurmi
be5f26ba18 Merge remote-tracking branch 'origin/1.6.x' 2015-02-23 09:39:12 +01:00
Alexey Sokolov
72678cc60c Merge pull request #874 from jpnurmi/webadmin
Fix #872: webadmin checkboxes
2015-02-22 21:36:06 -08:00
OGAWA Hirofumi
c6d093a53a Change to return the value from OnUserQuit() as request 2015-02-22 04:33:15 +09:00
OGAWA Hirofumi
85941f87c0 Extend clearbufferonmsg module and some znc commands for flexible buffer clear
Current clearbufferonmsg clears buffer on some user actions (OnMsg,
OnCTCP, OnAction, OnNotice, OnPart, OnTopic). And user can't change
this fixed built-in rule.

This built-in rule to clear buffer is too inflexible. So, this
extends clearbufferonmsg to satisfy more users on different
situations.

Add args to clearbufferonmsg to allow that user choose callbacks to clear.

msg    - clear on OnUserMsg callback
ctcp   - clear on OnUserCTCP callback
action - clear on OnUserAction callback
notice - clear on OnUserNotice callback
part   - clear on OnUserPart callback
topic  - clear on OnUserTopic callback
quit   - clear on OnUserQuit callback

all    - set all options above

By default, clear on msg, ctcp, action, notice, part, topic. (except
quit for backward compatibility).

Example usage in znc.conf:

[set all options]
	LoadModule = clearbufferonmsg all

[on quit and part]
	LoadModule = clearbufferonmsg !all quit part
2015-02-22 04:33:15 +09:00
OGAWA Hirofumi
feec20b013 Add OnUserQuit() for extending clearbufferonmsg
Add OnUserQuit() callback. On smartphone, user doesn't want to see
same lines repeatedly. But, meanwhile, user doesn't want to miss lines
when connection was lost.

To do it, this uses OnUserQuit() callback. With this callback,
clearbufferonmsg can clear buffer if user quited client explicitly.
And when connection was lost, buffer is still not cleared.
2015-02-22 04:33:14 +09:00
J-P Nurmi
c0abef2c00 Merge remote-tracking branch 'origin/1.6' 2015-02-19 09:37:47 +01:00
J-P Nurmi
d7598a76dc Merge pull request #878 from Mkaysi/sasl16
modules/sasl.cpp: update help for "set"
2015-02-19 09:29:36 +01:00
Mikaela Suomalainen
2082362b0b modules/sasl.cpp: update help for "set"
This is the same as #793, but for correct branch.

Closes #793
2015-02-19 10:08:45 +02:00
Thomas Kriechbaumer
ac3570f18a fix savebuff timer initialization
closes #868
2015-02-19 08:34:01 +01:00
Mikaela Suomalainen
848085db68 sasl: fix help text for requireauth
Closes #875
2015-02-19 08:30:41 +02:00
J-P Nurmi
44705b7f47 Fix #872: webadmin checkboxes
Don't claim all networks/users have loaded a module when there are none
2015-02-18 11:29:28 +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
Mikaela Suomalainen
ca953d45ed nickserv: use NICKSERV instead of PRIVMSG
Ref: https://github.com/znc/znc/issues/786#issuecomment-68104883

The NickServ command is usually server-side alias that ensures that
NickServ is U-lined server and not random user who has /nicked to
NickServ on misconfigured server that allows that.

NS would probably also work, but NICKSERV is more common.
Ref: https://github.com/ProgVal/Limnoria/pull/724#issuecomment-45381342
2015-02-01 11:55:23 +02:00
Alexey Sokolov
f9a4507669 Add a global setting whether to show ZNC version or not
Close #820
Close #821
2015-01-30 23:01:06 +00:00
Alexey Sokolov
046f5e273c Clarify in webadmin that timestamp format is useless with server-time 2015-01-25 19:17:43 +00:00
Alexey Sokolov
7b1133de77 sample should be network module, not user module.
Network modules are easier to write
2015-01-18 21:26:42 +00:00
J-P Nurmi
045f7752cb savebuff: save & load query buffers - fixes #802
The old internal storage format was:

    ::__:SAVEBUFF:__::<buffer lines>

The new storage format for channels:

    ::__:CHANBUFF:__::<buffer name>
    <buffer lines>

The new storage format for queries:

    ::__:QUERYBUFF:__::<buffer name>
    <buffer lines>

See #802 for details why the storage format had to be changed. Reading
the old storage format is still supported so old saved buffers load as
appropriate.
2015-01-16 21:13:44 +01:00
Alexander Færøy
5ae5ff46db Q: Ignore JoinAfterCloaked unless UseCloakedHost is set
This patch ignores the value of JoinAfterCloaked unless UseCloakedHost
is set. Without this patch, it's possible to enable JoinAfterCloaked,
but not have UseCloakedHost enabled, which means that no channel will
ever be joined automatically by ZNC.

Fixes: #602
2015-01-11 17:42:26 +01:00
Alexey Sokolov
5608e4f201 Oops, I'm not familiar with our CSS 2015-01-11 09:06:15 +00:00
Alexey Sokolov
00b38dc164 Enable editing trusted fingerprints in webadmin 2015-01-11 09:04:31 +00:00
Alexey Sokolov
7504cb205b modpython: Enable default arguments feature of SWIG 3.0.4
Some corner cases are disabled for now, until SWIG fixes them.
See #809 for details.
2015-01-09 08:26:38 +00:00
Falk Seidel
2e29d49a53 Welcome to 2015 2014-12-31 11:28:38 +01:00
Mikaela Suomalainen
94c0c244be webadmin: suggest ISO-8859-15 if non-UTF-8 char...
...set must be recommended.
2014-12-30 13:34:35 +02:00
Edoardo Spadolini
beee1f74bc Mention username as well as password in the sasl module help 2014-12-26 10:30:35 +01:00
Edoardo Spadolini
eac2469275 Remove DH-BLOWFISH and DH-AES from the sasl module 2014-12-26 10:19:42 +01:00
Alexey Sokolov
fd4c355e46 Let's use recommended value by default for new users 2014-12-25 14:42:52 +00:00
Alexey Sokolov
e943f8b370 Fix crash in Add User page in webadmin
Thanks to JordanJ2 for reporting it
2014-12-25 13:00:27 +00:00