To create new wiki account, please join us on #znc at freenode and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Difference between revisions of "Autovoice"

From ZNC
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:autovoice}} {{Extra Module}} This module voices everyone joining the channel you tell it to. == Usage == {{Module arguments | count = many | extra = Each arg...")
 
(Add some better examples with hostmap.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:autovoice}}
 
{{DISPLAYTITLE:autovoice}}
{{Extra Module}}
+
{{Core Module | version = 1.0}}
  
 
This module voices everyone joining the channel you tell it to.
 
This module voices everyone joining the channel you tell it to.
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[edit]

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[edit]

Just read the help:

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

Examples[edit]

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> +------+----------+----------+