To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.
Chanfilter: Difference between revisions
>Jpnurmi mNo edit summary |
Restore Chanfilter from archive.org - 2016/11/07 |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<!--{{External Module}}--> | <!--{{External Module}}--> | ||
{{ | {{External Module}} | ||
The channel filter module maintains client specific channel lists for identified clients. A typical use case is to have a subset of channels visible | The channel filter module maintains client specific channel lists for identified clients. A typical use case is to have a subset of channels visible to a mobile client. | ||
The source code is available on [https://github.com/jpnurmi/znc-chanfilter GitHub]. See also instructions for [[compiling modules]]. | The source code is available on [https://github.com/jpnurmi/znc-chanfilter GitHub]. See also instructions for [[compiling modules]]. | ||
Line 8: | Line 8: | ||
=== Usage === | === Usage === | ||
When | When a client connects to ZNC for the first time, all channels are joined. The list of channels is automatically updated when the client joins and parts channels. Next time the identified client connects, it joins the channels it had visible from the last session. | ||
This only happens to clients that are identified and ''added'' (see below). | |||
Note that because this module intercepts <code>/part</code>, joining a new channel and then parting it in an identified client will leave it attached in ZNC (and other clients). Typing <code>/part #channel</code> another time will pass the action through to ZNC and part the channel on the network. | |||
{{Module arguments|no}} | {{Module arguments|no}} |
Latest revision as of 19:24, 2 April 2017
This is an external module. Please note that it may or may not work with the current release (1.9.1). This module is not included in the default ZNC installation, and you will need to manually compile it before you can load this module. Contact the author if you have any questions, but feel free to ask in #znc on Libera.Chat. Someone might be able to help you there. |
The channel filter module maintains client specific channel lists for identified clients. A typical use case is to have a subset of channels visible to a mobile client.
The source code is available on GitHub. See also instructions for compiling modules.
Usage
When a client connects to ZNC for the first time, all channels are joined. The list of channels is automatically updated when the client joins and parts channels. Next time the identified client connects, it joins the channels it had visible from the last session.
This only happens to clients that are identified and added (see below).
Note that because this module intercepts /part
, joining a new channel and then parting it in an identified client will leave it attached in ZNC (and other clients). Typing /part #channel
another time will pass the action through to ZNC and part the channel on the network.
Arguments
This user module takes no arguments.
Read loading modules to learn more about loading modules.
Identifiers
ZNC supports passing a client identifier in the password:
username@identifier/network:password
or in the username:
username@identifier/network
Commands
Add a client:
/msg *chanfilter AddClient <identifier>
Delete a client:
/msg *chanfilter DelClient <identifier>
List all channels of a client:
/msg *chanfilter ListChans [client]
List known clients and their hidden channels:
/msg *chanfilter ListClients
Restore the hidden channels of a client:
/msg *chanfilter RestoreChans [client]