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 |
>Jpnurmi mNo edit summary |
||
Line 6: | Line 6: | ||
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]]. | ||
== | === Usage === | ||
When an identified client connects ZNC 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. | When an identified client connects ZNC 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. | ||
{{Module arguments|no}} | {{Module arguments|no}} | ||
== Identifiers == | === Identifiers === | ||
ZNC supports passing a client identifier in the password: | ZNC supports passing a client identifier in the password: | ||
Line 22: | Line 20: | ||
username@identifier/network | username@identifier/network | ||
== Commands == | === Commands === | ||
Add a client: | Add a client: |
Revision as of 17:31, 5 February 2015
This external module is a work in progress. Please note that it requires the latest development version of ZNC. Contact the author if you have any questions, but feel free to ask on IRC, someone might able to help you there, too. |
The channel filter module maintains client specific channel lists for identified clients. A typical use case is to have a subset of channels visible for a mobile client.
The source code is available on GitHub. See also instructions for compiling modules.
Usage
When an identified client connects ZNC 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.
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]