Commit Graph

1429 Commits

Author SHA1 Message Date
Alexey Sokolov
0ff3e34985 Simplify nickserv module.
Now alias module exists, so nickserv module doesn't need any custom
command. It justs identifies user.

Close #662
2014-12-22 13:07:23 +00:00
Alexey Sokolov
f050780f2c Merge pull request #779 from Mkaysi/sasl
sasl.cpp: don't advertise DH-* as secure
2014-12-21 19:33:50 +00:00
Mikaela Suomalainen
fac07b2e5a sasl.cpp: don't advertise DH-* as secure
They were removed from Atheme, because people thought them to be more
secure than PLAIN + SSL, so ZNC shouldn't advertise them as secure.

I think that DH-AES and DH-BLOWFISH should say something about not being
widely supported, but I am not sure what. Newer Atheme doesn't support
it and with Anope they are optional unlike PLAIN and EXTERNAL that are
in their SASL core.
2014-12-21 21:28:13 +02:00
Alexey Sokolov
bd9450b99e Webadmin: Add GUI for character encoding 2014-12-21 17:08:41 +00:00
Alexey Sokolov
9e05bb1917 Make list of vars in controlpanel's help compact 2014-12-18 10:31:09 +00:00
Martin Martimeo
a66c6164a7 Release python/swig ownership when adding object created in python to ZNC container
Patch by MartinMartimeo (#538)
2014-12-16 13:40:06 +00:00
Alexey Sokolov
c570b551aa Honor X-Forwarded-For of HTTP clients not only in web.
Fix #537
2014-12-16 10:50:06 +00:00
J-P Nurmi
4a31ec57de Fix #759 - channels cannot be reattached
This was a regression caused by aed1d61 :(
2014-11-26 12:34:47 +01:00
Alexey Sokolov
abb0ca5bd3 Fix build without threads 2014-11-24 21:28:40 +00: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
44ce027717 Merge pull request #738 from jpnurmi/override
modules: use override keyword
2014-11-06 22:14:38 +00: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
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
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
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
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
Alexey Sokolov
917924c51a Merge commit 'refs/pull/722/head' of github.com:znc/znc 2014-10-28 07:30:09 +00:00
Alexey Sokolov
1a8f15d510 Support CZNC::GetUserMap() from modpython.
Thanks to lol768 for reporting it.
2014-10-28 07:22:50 +00:00
Markus Jung
4eaed93764 simple_away: apply auto-away on load if no user is connected 2014-10-28 02:42:31 +01:00
Markus Jung
79d8ae7432 modpython: set has_args and args_help_text from module 2014-10-28 01:23:31 +01:00
Alexey Sokolov
c1dc3e83d2 Support lambdas in module commands 2014-10-26 22:09:24 +00:00
J-P Nurmi
bbd393d84f log: add support for logging rules
By default, everything is logged. The first matching rule wins.
Negation (!) and wildcards (*) are supported.

For example, disable logging for all channels, except #znc:

    /msg *log setrules #znc !#*

Queries do not match either of the above rules, so they get logged.
2014-10-26 22:58:45 +01:00
Alexey Sokolov
6509e26b89 Fix modpython+shared_ptr 2014-10-26 20:32:46 +00:00
Markus Jung
629e156975 savebuff: do not skip channels with AutoClearChanBuffer==true 2014-10-26 17:05:29 +01:00
Alexey Sokolov
e337cb433d Merge commit 'refs/pull/665/head' of github.com:znc/znc 2014-10-26 12:17:31 +00:00
J-P Nurmi
1d19bac8ad Refactor chansaver (#674)
CChan now keeps track of the state. The module no longer needs to
rely on incoming messages, but can just mark whether each channel
should be kept in config or not. Cleanup things and use C++11 for
loops while we're at it...
2014-10-20 07:12:16 +02:00
Alexey Sokolov
a888d38511 Merge pull request #704 from jpnurmi/joindelay
Configurable join delay
2014-10-19 23:57:22 +01:00
J-P Nurmi
14e09e1a10 Retire awaynick (resolves #661)
== built-in awaynick ==

debug output on startup:

    [ .. ] Loading network module [awaynick]...
    [ !! ] Module [awaynick] aborted: retired module - see http://wiki.znc.in/awaynick
    [ .. ] Loading network module [simple_away] instead...
    [ >> ] [/Users/jpnurmi/znc/lib/znc/simple_away.so]

loadmod client command:

    <jpnurmi> loadmod awaynick
    <*status> Module [awaynick] aborted: retired module - see http://wiki.znc.in/awaynick

webadmin description:

    retired module - see http://wiki.znc.in/awaynick

webadmin load attempt:

    Unable to load module [awaynick] [Module [awaynick] aborted:
    retired module - see http://wiki.znc.in/awaynick]

== external awaynick ==

znc-buildmod:

    $ znc-buildmod awaynick.cpp
    Building "awaynick.so" for ZNC 1.5... [ ok ]

debug output on startup:

    [ .. ] Loading network module [awaynick]...
    [ >> ] [/Users/jpnurmi/.znc/modules/awaynick.so]

loadmod client command:

    <jpnurmi> loadmod awaynick
    <*status> Loaded module [awaynick] [/Users/jpnurmi/.znc/modules/awaynick.so]

webadmin description:

    Change your nick while you are away
2014-10-18 12:12:43 +02:00
J-P Nurmi
9576702d8a webadmin: let specify join delay for networks 2014-10-15 22:24:42 +02:00
J-P Nurmi
6877b9f88f controlpanel: get/setnetwork joindelay 2014-10-15 22:24:42 +02:00
Alexey Sokolov
e9ab3e2bcf Merge pull request #703 from jpnurmi/autoop
Fix #597: make autoop save added masks
2014-10-12 16:38:57 +01:00