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.

Autovoice: Difference between revisions

From ZNC
Jump to navigation Jump to search
>Un1matr1x
mNo edit summary
>Notpeter
Add some better examples with hostmap.
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:


{{Module arguments
{{Module arguments
| type  = network
| count = many
| count = many
| extra = Each argument is either a channel you want autovoice for (which can include wildcards) or, if it starts with !, it is an exception for autovoice.}}
| extra = Each argument is either a channel you want autovoice for (which can include wildcards) or, if it starts with !, it is an exception for autovoice.}}
Line 13: Line 14:
Just read the help:
Just read the help:
  /msg *autovoice help
  /msg *autovoice help
ADDCHANS <user> <channel> [channel] ...
DELCHANS <user> <channel> [channel] ...
ADDUSER <user> <hostmask> [channels]
DELUSER <user>
==== Examples ====
To voice two user when they join a particular channel
adduser user nick!ident@host.tld #channel
adduser hubot hubot!nodebot@127.0.0.1 #team


==== Example ====
To voice everybody who joins "#ubuntu" do the following:
To voice everybody who joins "#ubuntu" do the following:



Latest revision as of 22:50, 5 December 2014


This module voices everyone joining the channel you tell it to.

Usage

Arguments

This network module takes many arguments. Each argument is either a channel you want autovoice for (which can include wildcards) or, if it starts with !, it is an exception for autovoice.

Read loading modules to learn more about loading modules.

Commands

Just read the help:

/msg *autovoice help
ADDCHANS <user> <channel> [channel] ...
DELCHANS <user> <channel> [channel] ...
ADDUSER <user> <hostmask> [channels]
DELUSER <user>

Examples

To voice two user when they join a particular channel

adduser user nick!ident@host.tld #channel
adduser hubot hubot!nodebot@127.0.0.1 #team

To voice everybody who joins "#ubuntu" do the following:

<fabs> listusers
<*autovoice> There are no users defined
<fabs> adduser * * #ubuntu
<*autovoice> User [*] added with hostmask [*]
<fabs> listusers
<*autovoice> +------+----------+----------+
<*autovoice> | User | Hostmask | Channels |
<*autovoice> +------+----------+----------+
<*autovoice> | *    | *        | #ubuntu  |
<*autovoice> +------+----------+----------+