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.

Watch: Difference between revisions

From ZNC
Jump to navigation Jump to search
Created page with "{{DISPLAYTITLE:watch}} This module allows you to monitor the activity of a specific user and/or text patterns and have the text sent to a special query window. This may be han..."
 
>Paccer
Updated "Module arguments" of network modules to "network" from "user"
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:watch}}
{{DISPLAYTITLE:watch}}
{{Core Module}}
This module allows you to monitor the activity of a specific user and/or text patterns and have the text sent to a special query window. This may be handy if you, for example, want to notice any messages containing your nickname.
This module allows you to monitor the activity of a specific user and/or text patterns and have the text sent to a special query window. This may be handy if you, for example, want to notice any messages containing your nickname.


== Usage ==
== Usage ==
{{Module arguments}}
{{Module arguments
| type  = network}}


=== Commands ===
=== Commands ===
Line 12: Line 14:
  /msg *watch add * *highlight *%nick%*
  /msg *watch add * *highlight *%nick%*
  <*watch> Adding entry: [*!*@*] watching for [*%nick%*] -> [*highlight]
  <*watch> Adding entry: [*!*@*] watching for [*%nick%*] -> [*highlight]
To set the channels that should be logged:
To set the channels that should be logged (use space as a delimiter for setting multiple sources):
  /msg *watch SetSources 1 #bugs
  /msg *watch SetSources 1 #bugs
  <*watch> Sources set for Id 1.
  <*watch> Sources set for Id 1.

Revision as of 18:07, 18 June 2013

This module allows you to monitor the activity of a specific user and/or text patterns and have the text sent to a special query window. This may be handy if you, for example, want to notice any messages containing your nickname.

Usage

Arguments

This network module takes no arguments.

Read loading modules to learn more about loading modules.

Commands

To add a watch entry:

/msg *watch add *!firebot@moz-8BCFA482.carolina.res.rr.com *firebot-watch
<*watch> Adding entry: [*!firebot@moz-8BCFA482.carolina.res.rr.com] watching for [*] -> [*firebot-watch]

To add a watch entry using an ExpandString:

/msg *watch add * *highlight *%nick%*
<*watch> Adding entry: [*!*@*] watching for [*%nick%*] -> [*highlight]

To set the channels that should be logged (use space as a delimiter for setting multiple sources):

/msg *watch SetSources 1 #bugs
<*watch> Sources set for Id 1.

Results should be like:

<*firebot-watch> <firebot:#bugs> New Firefox - General bug 311883 filed by box@gmx.at.

To show a list (list shows all that are being watched and dump shows them all):

/msg *watch list
/msg *watch dump

To remove entries:

/msg *watch del <id> (deletes a specific entry)
/msg *watch clear (deletes all entries)

To enable and disable (wildcard character * can be used for all):

/msg *watch enable <id | *>
/msg *watch disable <id | *>

This module can also set the amount of buffered lines while detached:

/msg *watch buffer <lines>

See ExpandString for a list of available variables which you can use in your message patterns.