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.

Autoattach: Difference between revisions

From ZNC
Jump to navigation Jump to search
Created page with "{{DISPLAYTITLE:autoattach}} {{Core Module}} Autoattach watches your detached channels and reattaches you automatically when there is activity in a channel you added to your au..."
 
KindOne (talk | contribs)
Restore Autoattach from archive.org - 2016/08/22
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
== Usage ==
== Usage ==


{{Module arguments}}
{{Module arguments|count=any number of|extra=Each argument is a mask for channel with or without ! before it. They are added to those which are added using <code>add</code> command, as explained below.}}


=== Commands ===
=== Commands ===
<pre>
------
Command: Add [!]<#chan> <search> <host>
Description: Add an entry, use !#chan to negate and * for wildcards
------
Command: Del [!]<#chan> <search> <host>
Description: Remove an entry, needs to be an exact match
------
Command: Help search
Description: Generate this output
------
Command: List
Description: List all entries
------
</pre>
==== Examples ====
Autoattach can be controlled like this:
Autoattach can be controlled like this:
Attach on activity:
  /msg *autoattach add *
  /msg *autoattach add *
Attach on highlight:
/msg *autoattach add * *%nick%*
Never attach to channels starting with #chan:
  /msg *autoattach add !#chan*
  /msg *autoattach add !#chan*
Remove the never attaching rule for channels starting with #chan:
  /msg *autoattach del !#chan*
  /msg *autoattach del !#chan*
List the autoattach rules:
  /msg *autoattach list
  /msg *autoattach list
* <code>*</code> in front of <code>autoattach</code> is the StatusPrefix set in your config file.
* <code>*</code> in front of <code>autoattach</code> is the StatusPrefix set in your config file.
* <code>*</code> inside a channel name is the wildcard character.
* <code>*</code> inside a channel name is the wildcard character.
* <code>*%nick%*</code> is wildcards around [[ExpandString]] that turns to your nick.
* <code>!</code> in front of the channel name will exclude the specific channel.
* <code>!</code> in front of the channel name will exclude the specific channel.

Latest revision as of 18:13, 2 April 2017

Autoattach watches your detached channels and reattaches you automatically when there is activity in a channel you added to your autoattach list. Read the page about detaching to learn about detached channels.

Autoattach considers channel notices and messages as activity.

Usage

Arguments

This user module takes any number of arguments. Each argument is a mask for channel with or without ! before it. They are added to those which are added using add command, as explained below.

Read loading modules to learn more about loading modules.

Commands

------
Command: Add [!]<#chan> <search> <host>
Description: Add an entry, use !#chan to negate and * for wildcards
------
Command: Del [!]<#chan> <search> <host>
Description: Remove an entry, needs to be an exact match
------
Command: Help search
Description: Generate this output
------
Command: List 
Description: List all entries
------

Examples

Autoattach can be controlled like this: Attach on activity:

/msg *autoattach add *

Attach on highlight:

/msg *autoattach add * *%nick%*

Never attach to channels starting with #chan:

/msg *autoattach add !#chan*

Remove the never attaching rule for channels starting with #chan:

/msg *autoattach del !#chan*

List the autoattach rules:

/msg *autoattach list
  • * in front of autoattach is the StatusPrefix set in your config file.
  • * inside a channel name is the wildcard character.
  • *%nick%* is wildcards around ExpandString that turns to your nick.
  • ! in front of the channel name will exclude the specific channel.