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
Alexey Sokolov
241ccc1d70
Merge pull request #706 from jpnurmi/autoattach
...
fix #690 : make autoattach a network module
2014-10-12 16:34:17 +01:00
J-P Nurmi
576f8d4689
fix #690 : make autoattach a network module
2014-10-12 00:06:12 +02:00
J-P Nurmi
7b56f94b68
Fix #597 : make autoop save added masks
2014-10-10 19:59:27 +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
Cameron Stephen
e570466683
Update Grammar on Modules section of ZNC.
2014-10-05 20:31:13 +02:00
Kyle Fuller
cf633ee435
[log] $WINDOW should be last because it could contain %
...
Thanks to @NuclearW for spotting
2014-09-30 18:28:20 +01:00
J-P Nurmi
6457bd6dc1
Fix #680 - make channels follow user-level settings when appropriate
2014-09-30 00:34:01 +02:00
Alexey Sokolov
439fd6d285
Merge pull request #679 from jpnurmi/setchan
...
controlpanel: allow wildcards for getchan & setchan
2014-09-28 21:22:10 +01:00