Commit Graph

4514 Commits

Author SHA1 Message Date
J-P Nurmi
dd9c2b70d3 Update Csocket to b5185dc
> Fix IsConnected() to return false when Disconnected() gets called
2014-11-19 19:11:50 +01:00
J-P Nurmi
f4dc03b125 ListClients: add identifier column 2014-11-12 10:22:34 +01:00
J-P Nurmi
aed1d61a98 Revise CChan::JoinUser() & AttachUser()
The old AttachUser() that sent JOIN without topic or names replies
would leave clients in incomplete/broken state. JoinUser() was doing
two things; depending on passed arguments it was either joining user
on the channel on IRC, or attaching clients (properly). Now JoinUser()
joins the user on IRC, and AttachUser() attaches as expected from the
method names.
2014-11-10 22:24:34 +01:00
Alexey Sokolov
24a72d9a32 Merge branch 'lambda' 2014-11-08 16:39:41 +00:00
Alexey Sokolov
26c19826d3 Enable UBSan in travis 2014-11-08 16:11:51 +00:00
Alexey Sokolov
069d0ba0a6 Merge pull request #728 from jpnurmi/ssl-protocols
Config option for SSL protocols (#720)
2014-11-06 23:15:25 +00:00
J-P Nurmi
b759c68847 Config option for SSL protocols (resolves #720)
ZNC currently disables SSLv2 and SSLv3 by default. To keep the ZNC
defaults (recommended, may change in the future versions) and for
example disable TLSv1 in addition, specify in the global config
section:

    SSLProtocols = -TLSv1

Available (case-insentive) values are:

    All, SSLv2, SSLv3, TLSv1, TLSv1.1, TLSv1.2

A non-prefixed "absolute" value overrides the ZNC defaults:

    SSLProtocols = TLSV1 +TLSv1.1 +TLSv1.2
2014-11-06 23:49:49 +01:00
Alexey Sokolov
f50d21b0b7 Merge pull request #741 from jpnurmi/charset
configure: pass ICU build flags to modules
2014-11-06 22:37:09 +00:00
Alexey Sokolov
44ce027717 Merge pull request #738 from jpnurmi/override
modules: use override keyword
2014-11-06 22:14:38 +00:00
J-P Nurmi
1c07c38477 configure: pass ICU build flags to modules 2014-11-06 23:08:51 +01:00
Alexey Sokolov
383401bc05 Merge pull request #739 from markusj/savebuff-handle-empty-password
savebuff: Handle empty passwords identical in SetPass, and in OnLoad
2014-11-06 22:08:25 +00:00
J-P Nurmi
54e8b62b87 Fix #719: Disable SSL compression 2014-11-06 20:41:49 +01:00
J-P Nurmi
6ae9a439b2 Fix non-SSL build 2014-11-06 20:41:49 +01:00
J-P Nurmi
c8ea3d3875 Update Csocket to 1d7e685
> Extend EDisableProtocol
> missing ifdef for non-ssl
> added ability to disable compression
> added new callbacks for Certificate Verification and Handshake completion
> added SNI support for client and server, cleanup some of the certificate verification callback code
2014-11-06 20:40:42 +01:00
Markus Jung
a97208d2b3 savebuff: Handle empty passwords identical
setpass <password> did not check for an empty argument.
Use the same fallback password as OnLoad()
2014-11-05 20:26:42 +01:00
J-P Nurmi
e00e80a75a modules: cleanup superfluous virtual keywords
These methods are not overriding anything or being overridden anywhere.
2014-11-05 08:00:23 +01:00
J-P Nurmi
f9318d02cf modules: use override keyword
Resolves #736
2014-11-05 08:00:02 +01:00
Alexey Sokolov
f7270e8b2e Merge commit 'refs/pull/733/head' of github.com:znc/znc 2014-11-04 07:33:15 +00:00
J-P Nurmi
20c9b19328 Add CIRCNetwork::FindClient(const CString& sIdentifier) 2014-11-04 00:42:31 +01:00
J-P Nurmi
8d77faa260 Allow clients to specify an ID via PASS or USER
- PASS [user[@identifier][/network]:]password
- USER user[@identifier][/network] ...

NOTE: There's a slight ambiguosity with the '@' character, which happens
to be a valid character in usernames, but also acts as a marker for the
identifier. Therefore, '@' is considered as part of the username if it's
followed by non-word characters (as in an email address), otherwise as
a marker for an identifier.

This is only an enabler for #343. The rest can be done with modules:
- managing client ID specific playback buffers
- filtering channels based on the client ID

The reason this should be part of ZNC core is that only global modules
have access to OnUnknownUserRaw(), which is needed to capture USER/PASS.
First of all, the aforementioned modules shouldn't be global. Furthermore,
it would be possible to have only one module that parsed and removed the
client ID so that ZNC core woulnd't choke.
2014-11-04 00:42:28 +01:00
Alexey Sokolov
c5b3c2e671 Merge pull request #735 from jpnurmi/modcommand
Convert most of the remaining modules to use CModCommand
2014-11-03 23:24:33 +00:00
J-P Nurmi
bca6e2e39d stickychan: use CModCommand 2014-11-04 00:01:31 +01:00
J-P Nurmi
57b25ab277 simple_away: use CModCommand 2014-11-03 23:55:21 +01:00
J-P Nurmi
ac7cf938c6 savebuff: use CModCommand 2014-11-03 23:47:33 +01:00
J-P Nurmi
4b6a5042ad listsockets: use CModCommand 2014-11-03 23:38:42 +01:00
J-P Nurmi
88c397a700 kickrejoin: use CModCommand 2014-11-03 23:29:19 +01:00
J-P Nurmi
44bab0a6be keepnick: use CModCommand 2014-11-03 23:12:28 +01:00
J-P Nurmi
85524f4408 ctcpflood: use CModCommand 2014-11-03 23:08:47 +01:00
J-P Nurmi
2a03a6ab92 crypt: use CModCommand 2014-11-03 23:08:47 +01:00
J-P Nurmi
bf87ebb263 clientnotify: use CModCommand 2014-11-03 23:08:46 +01:00
J-P Nurmi
7bc1fa68e0 blockuser: use CModCommand 2014-11-03 23:08:46 +01:00
J-P Nurmi
5295fed83e autovoice: use CModCommand 2014-11-03 23:08:46 +01:00
J-P Nurmi
f1eaa7d63e autoreply: use CModCommand 2014-11-03 23:08:46 +01:00
J-P Nurmi
9e41fe869f autoop: use CModCommand 2014-11-03 23:08:46 +01:00
J-P Nurmi
85e92f5669 autocycle: use CModCommand 2014-11-03 23:08:46 +01:00
J-P Nurmi
354a89e45b adminlog: use CModCommand 2014-11-03 23:08:46 +01:00
Alexey Sokolov
7f4cdd6ad7 Merge pull request #734 from jpnurmi/gitignore
Update .gitignore
2014-11-03 21:19:11 +00:00
J-P Nurmi
b240438b1a Update .gitignore 2014-11-03 19:06:34 +01:00
Alexey Sokolov
5365dc462c Merge pull request #731 from jpnurmi/self-message
Add self-message support
2014-11-02 19:16:16 +00:00
Alexey Sokolov
50bf7176fe Merge pull request #553 from wolfhechel/master
Read aliased commands before sending, allowing to alias module commands.
2014-11-02 19:08:40 +00:00
Alexey Sokolov
5b863ddec5 Merge pull request #730 from jpnurmi/buffextras
Resolve #723: Allow buffextras as a network-level module
2014-11-02 18:52:44 +00:00
J-P Nurmi
382ce76ded Add self-message support
https://github.com/ircv3/ircv3-specifications/blob/master/extensions/self-message-3.2.md
2014-11-02 16:59:17 +01:00
J-P Nurmi
8fdf51dfeb Fix CNick::Parse()
If the mask started with ':', the following '!' was included to nick.
2014-11-01 13:17:32 +01:00
Pontus Carlsson
e7b0138a09 Process aliased commands before sending them (#552)
Which makes it possible to alias znc module commands.
2014-11-01 10:48:00 +01:00
J-P Nurmi
71bbefc068 Resolve #723: Allow buffextras as a network-level module 2014-10-30 21:52:18 +01:00
Alexey Sokolov
5aa5e99a08 Merge pull request #727 from markusj/savebuff-on-autoclear-too
savebuff: do not skip channels with AutoClearChanBuffer==true
2014-10-29 20:51:48 +00:00
Alexey Sokolov
7b37f5aa5d Merge pull request #726 from jpnurmi/leak
Fix #725: CHTTPSock memory leak - missing deflateEnd() call
2014-10-29 06:50:00 +00:00
Alexey Sokolov
15283da006 Merge pull request #721 from markusj/modpy-can-have-args
modpython: Use has_args and args_help_text from module
2014-10-29 06:38:28 +00:00
J-P Nurmi
b822ea8e16 Fix #725: CHTTPSock memory leak - missing deflateEnd() call 2014-10-29 00:19:40 +01:00
Alexey Sokolov
917924c51a Merge commit 'refs/pull/722/head' of github.com:znc/znc 2014-10-28 07:30:09 +00:00