Project

General

Profile

Protect » History » Version 6

Per Amundsen, 02/16/2023 02:58 PM

1 1 Per Amundsen
_Added in 3.8_
2
3
*/protect [-lrw] <on|off|nick|address> [#channel1,#channel2,...] [type] [network]*
4
5 4 Per Amundsen
Adds/removes/lists users from the protect list.
6 3 Per Amundsen
7 5 Per Amundsen
Users on the protect list are re-opped if someone else de-ops them.
8 1 Per Amundsen
9
/protect with no parameters shows [[$true]] if protect is enabled, otherwise [[$false]].
10
11 2 Per Amundsen
_See also [[$protect]], [[/aop]], [[/avoice]], [[$aop]], [[$avoice]]._
12 1 Per Amundsen
13
*Switches*
14
15 6 Per Amundsen
table(ktable).
16
|*Switch*|*Description*|
17
| -l | Prints all protect users. |
18
| -r | Removes a address from the protect list. (if no address is specified, clears the protect list) |
19
| -w | Indicate the protect should be enabled on all networks. |
20 1 Per Amundsen
21
*Parameters*
22
23 6 Per Amundsen
table(ktable).
24
|*Parameter*|*Description*|
25
| on | Turns protect on. |
26
| off | Turns protect off. |
27
| address | The address or nick to add/remove from the protect list. |
28
| [#channel1,#channel2,...] | List of channels to protect in. |
29
| [type] | A number representing a [[$mask]] to use. (if user is not found in the internal address list, a lookup is performed) |
30
| [network] | The network to protect in. |
31 1 Per Amundsen
32
*Example*
33
34
<pre>
35
; Adds 'nick!nick@42.42.42.42' to the protect list on the channel '#channel'
36
/protect nick!nick@42.42.42.42 #channel
37
38
; Adds 'nick!*@*' to the protect list on any channel.
39
/protect nick
40
41
; Remove 'nick!nick@42.42.42.42' from the protect list.
42
/protect -r nick!nick@42.42.42.42
43
44
</pre>