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 "Perform"

From ZNC
Jump to: navigation, search
(Specify what the module does when loaded as a user vs. network.)
m (Show where the .registry files are stored / simply it.)
Line 3: Line 3:
 
This module is used to perform one or more user-specified commands when connecting to the IRC network.  
 
This module is used to perform one or more user-specified commands when connecting to the IRC network.  
  
If the module is loaded as a user module, it will perform the command(s) for the network(s) the user has.
+
Loading the module as a user will cause it to perform on all networks. Loading a network will cause it to only work on that network.
 
If the module is loaded as a network module, it will perform the command(s) for that specific network.  
 
  
 +
Depending on how the perform module is loaded, the commands are stored:
 +
 +
  user:    ~/.znc/users/$user/moddata/perform/.registry
 +
  network: ~/.znc/users/$user/networks/$network/moddata/perform/.registry
  
  

Revision as of 11:39, 25 April 2014

This module is used to perform one or more user-specified commands when connecting to the IRC network.

Loading the module as a user will cause it to perform on all networks. Loading a network will cause it to only work on that network.

Depending on how the perform module is loaded, the commands are stored:

 user:    ~/.znc/users/$user/moddata/perform/.registry
 network: ~/.znc/users/$user/networks/$network/moddata/perform/.registry


Usage

Arguments

This network module takes no arguments.

Read loading modules to learn more about loading modules.

Commands

The perform list is automatically saved on changes.

An example:

/msg *perform add msg X@Channels.undernet.org LOGIN <username> <password>
/msg *perform add msg Q@CServe.quakenet.org :AUTH <username> <password>
/msg *perform add mode %nick% +X
/msg *perform add OPER USER PASSWORD
/msg *perform del 1
/msg *perform list

See ExpandString for a list of available variables.