Log in | Back to darenet.org

Server Notice Masks (SNOMASK)

m
 
(9 intermediate revisions not shown)
Line 1: Line 1:
-
Service notice masks (snomask) allow clients to specify which types of server notices they'd like to receive while they have usermode +s. The mask may optionally be omitted, and reasonable defaults will be used by the server.
+
Server notice masks (snomask) allow clients to specify which types of server notices they'd like to receive while they have usermode +s. The <code>flag</code> argument may, optionally, be omitted, and reasonable defaults will be used instead.
-
The descriptions given below are probably best understood by those who are familiar with C syntax. Additionally, this document makes no attempt to explain the hexadecimal values given below. It is assumed the reader has familiarity with bot.
+
<div class="cmdsyn">Usage: /mode <nick> +s  [+/-][flag]</div>
-
Usage: /mode <nick> +s [+/-][mask]
+
{| class="simpletable" width="97%" style="font-size: 85%; text-align: left;"
-
 
+
-
{| class="wikitable" width="97%" style="font-size: 85%; text-align: left;"
+
|-  
|-  
-
! style="text-align: left" | Mask
+
! style="text-align: left; width: 120px;" | Mask
-
!
+
! style="text-align: left" | Flag
-
! style="text-align: left" | Hex Value
+
! style="text-align: left" | Description
! style="text-align: left" | Description
|-
|-
-
| 1
+
| SNO_CONNEXIT
-
| SNO_OLDSNO
+
| +c
-
| 0x1
+
| Client connections and exits.
-
| Old unsorted messages.
+
|-
|-
-
| 2
+
| SNO_DEBUG
-
| SNO_SERVKILL
+
| +d
-
| 0x2
+
| Server debug messages (debugmode only).
-
| Server Kills (nick collisions).
+
|-
|-
-
| 4
+
| SNO_TCPCOMMON
-
| SNO_OPERKILL
+
| +e
-
| 0x4
+
| Common TCP and socket error messages.
-
| Oper Kills.
+
|-
|-
-
| 8
+
| SNO_GLINE
-
| SNO_HACK2
+
| +g
-
| 0x8
+
| G-lines/Z-line/Shun messages.
-
| Desync messages.
+
|-
|-
-
| 16
+
| SNO_AUTO
-
| SNO_HACK3
+
| +G
-
| 0x10
+
| Auto G-line/Z-line/Shun messages.
-
| Temporary desync messages.
+
|-
|-
-
| 32
+
| SNO_IPMISMATCH
-
| SNO_UNAUTH
+
| +i
-
| 0x20
+
| IP mismatch messages.
-
| Unauthorized connection messages.
+
|-
|-
-
| 64
+
| SNO_HACK4
-
| SNO_TCPCOMMON
+
| +j
-
| 0x40
+
| HACK4 messages (services actions on channels).
-
| Common TCP or socket errors.
+
|-
|-
-
| 128
+
| SNO_SERVKILL
-
| SNO_TOOMANY
+
| +k
-
| 0x80
+
| Server kill messages.
-
| Too many connections messages.
+
|-
-
|-  
+
-
| 256
+
| SNO_OPERKILL
-
| SNO_HACK4
+
| +K
-
| 0x100
+
| Oper kill messages.
-
| Services actions on channels (ChanServ/OperServ).
+
|-
|-
-
| 512
+
| SNO_NICKCHG
-
| SNO_GLINE
+
| +n
-
| 0x200
+
| Nickname changes.
-
| G-line notifications.
+
|-
|-
-
| 1024
+
| SNO_OLDREALOP
-
| SNO_NETWORK
+
| +o
-
| 0x400
+
| Old oper-only messages.
-
| Net join/break notices, etc.
+
|-
|-
-
| 2048
+
| SNO_TOOMANY
-
| SNO_IPMISMATCH
+
| +r
-
| 0x800
+
| Too many connections rejection messages.
-
| IP mismatch notifications.
+
|-
|-
-
| 4096
+
| SNO_NETWORK
-
| SNO_THROTTLE
+
| +R
-
| 0x1000
+
| Routing messages (e.g., net.join/breaks).
-
| Host throttle add/remove notices.
+
|-
|-
-
| 8192
+
| SNO_OLDSNO
-
| SNO_OLDREALOP
+
| +s
-
| 0x2000
+
| Unsorted server notices.
-
| Old oper-only messages (/oper attempts, etc).
+
|-
|-
-
| 16384
+
| SNO_UNAUTH
-
| SNO_CONNEXIT
+
| +u
-
| 0x4000
+
| Unauthorized connection messages.
-
| Client connect/disconnect notices.
+
|-
|-
-
|}
 
-
==Default Masks==
+
| SNO_SERVICEKILL
 +
| +x
 +
| Services kill messages.
 +
|-
-
* '''standard +s:''' has no effect on DareNET
+
| SNO_HACK3
-
* '''standard +s when opered (+o/O):''' SNO_DEFAULT | SNO_HACK2 | SNO_HACK4 | SNO_OLDSNO
+
| +z
 +
| HACK3 messages (desyncs).
 +
|-
 +
 
 +
| SNO_HACK2
 +
| +Z
 +
| HACK2 messages (temporary desyncs).
 +
|-
 +
|}
==Example Usage==
==Example Usage==
Line 113: Line 105:
If you wanted to receive only operkills, you would use the following:
If you wanted to receive only operkills, you would use the following:
-
  /mode <nick> +s 4
+
  /mode <nick> +s +K
-
To receive both operkills and glines,  you would add the values together (operkills = 4, glines = 512 (see table above for values), sp 512+4-516):
+
To receive both operkills and glines,  you would use:
-
  /mode <nick> +s 516
+
  /mode <nick> +s +gK
-
If you are already receiving notices, and you'd like to add an additional notice, for example SNO_NETWORK (e.g. netjoins/breaks), you'd just use its value:
+
If you are already receiving notices, and you'd like to add an additional notice, for example SNO_NETWORK (e.g. netjoins/breaks), you'd just use
-
  /mode <nick> +s +1024
+
  /mode <nick> +s +R
If you would like to stop receiving such notices, for example SNO_NETWORK, but continue receiving other notices, you'd use:
If you would like to stop receiving such notices, for example SNO_NETWORK, but continue receiving other notices, you'd use:
-
<pre>/mode <nick> +s -1024
+
<pre>/mode <nick> +s -R
  or
  or
-
/mode <nick> -s +1024</pre>
+
/mode <nick> -s +R</pre>
 +
 
 +
To view a list of all SNOMASKs you are subscribed to, use:
 +
 
 +
<pre>/mode <nick></pre>
While users can set +s, they will not receive any notices on DareNET. Opers who set +s will automatically receive netjoins/breaks, operkills, glines and HACK notices.
While users can set +s, they will not receive any notices on DareNET. Opers who set +s will automatically receive netjoins/breaks, operkills, glines and HACK notices.
-
[[Category:Documentation]]
+
[[Category:All]] [[Category:Documentation]]

Current revision as of 19:03, 7 May 2011

Server notice masks (snomask) allow clients to specify which types of server notices they'd like to receive while they have usermode +s. The flag argument may, optionally, be omitted, and reasonable defaults will be used instead.

Usage: /mode <nick> +s [+/-][flag]
Mask Flag Description
SNO_CONNEXIT +c Client connections and exits.
SNO_DEBUG +d Server debug messages (debugmode only).
SNO_TCPCOMMON +e Common TCP and socket error messages.
SNO_GLINE +g G-lines/Z-line/Shun messages.
SNO_AUTO +G Auto G-line/Z-line/Shun messages.
SNO_IPMISMATCH +i IP mismatch messages.
SNO_HACK4 +j HACK4 messages (services actions on channels).
SNO_SERVKILL +k Server kill messages.
SNO_OPERKILL +K Oper kill messages.
SNO_NICKCHG +n Nickname changes.
SNO_OLDREALOP +o Old oper-only messages.
SNO_TOOMANY +r Too many connections rejection messages.
SNO_NETWORK +R Routing messages (e.g., net.join/breaks).
SNO_OLDSNO +s Unsorted server notices.
SNO_UNAUTH +u Unauthorized connection messages.
SNO_SERVICEKILL +x Services kill messages.
SNO_HACK3 +z HACK3 messages (desyncs).
SNO_HACK2 +Z HACK2 messages (temporary desyncs).

Example Usage

If you wanted to receive only operkills, you would use the following:

/mode <nick> +s +K

To receive both operkills and glines, you would use:

/mode <nick> +s +gK

If you are already receiving notices, and you'd like to add an additional notice, for example SNO_NETWORK (e.g. netjoins/breaks), you'd just use

/mode <nick> +s +R

If you would like to stop receiving such notices, for example SNO_NETWORK, but continue receiving other notices, you'd use:

/mode <nick> +s -R

 or

/mode <nick> -s +R

To view a list of all SNOMASKs you are subscribed to, use:

/mode <nick>


While users can set +s, they will not receive any notices on DareNET. Opers who set +s will automatically receive netjoins/breaks, operkills, glines and HACK notices.