Advertisement
Seb

ircu snowmasks list

Seb
Jul 17th, 2019
1,051
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. These descriptions are current up to ircu2.10.11 alpha. The most current description of these values can be found in the ircu source code in the file include/client.h
  2.  
  3. This document (hopefully) gives a brief explanation of the use of server notice masks new to ircu2.10.xx.
  4. This mask allows clients to specify which types of server notices they will receive when usermode +s.
  5. The mask may optionally be omitted, and reasonable defaults will be used by the server.
  6.  
  7. *Note* the descriptions here will be best understood by those with knowledge of C syntax.
  8. We do not attempt to explain either this or hexadecimal values in this document and familiarity with these is assumed of the reader.
  9.  
  10. Usage: /mode <nick> +s [+/-][mask]
  11.  
  12. Mask Hex value Description
  13. 1 SNO_OLDSNO 0x1 /* unsorted old messages */
  14. 2 SNO_SERVKILL 0x2 /* server kills (nick collisions) */
  15. 4 SNO_OPERKILL 0x4 /* oper kills */
  16. 8 SNO_HACK2 0x8 /* desyncs */
  17. 16 SNO_HACK3 0x10 /* temporary desyncs */
  18. 32 SNO_UNAUTH 0x20 /* unauthorized connections */
  19. 64 SNO_TCPCOMMON 0x40 /* common TCP or socket errors */
  20. 128 SNO_TOOMANY 0x80 /* too many connections */
  21. 256 SNO_HACK4 0x100 /* Uworld actions on channels */
  22. 512 SNO_GLINE 0x200 /* glines */
  23. 1024 SNO_NETWORK 0x400 /* net join/break, etc */
  24. 2048 SNO_IPMISMATCH 0x800 /* IP mismatches */
  25. 4096 SNO_THROTTLE 0x1000 /* host throttle add/remove notices */
  26. 8192 SNO_OLDREALOP 0x2000 /* old oper-only messages */
  27. 16384 SNO_CONNEXIT 0x4000 /* client connect/exit (ugh) */
  28. 32768 SNO_DEBUG 0x8000 /* only applies to servers compiled in debug mode (NOT production servers) */
  29.  
  30.  
  31. standard +s SNO_DEFAULT (SNO_NETWORK | SNO_OPERKILL | SNO_GLINE)
  32. standard +s when +o/O SNOSNO_OPER (SNO_DEFAULT | SNO_HACK2 | SNO_HACK4 | SNO_THROTTLE | SNO_OLDSNO)
  33. only opers may set SNO_OPER (SNO_CONNEXIT | SNO_OLDREALOP)
  34.  
  35.  
  36. Examples of usage:
  37.  
  38. To receive only operkills, use:
  39. /mode <nick> +s 4
  40.  
  41. To receive operkills and glines, add the values:
  42. /mode <nick> +s 516 (512+4=516)
  43.  
  44. If you are already receiving some notices and you wish to add notices of netjoins/breaks use:
  45. /mode Ghostwolf +s +1024
  46.  
  47. If you wish to stop receiving netjoin/break notices, but continue to receive other notices, use:
  48. /mode Ghostwolf +s -1024 or
  49. /mode Ghostwolf -s +1024
  50.  
  51. A user doing:
  52. /mode Ghostwolf +s
  53. will receive netsplits/joins, operkills, and g-lines.
  54.  
  55. Opers who are +s will additionally receive HACK notices and anything that was originally in sendto_ops() and wasn't changed.
  56. Only opers can choose to receive connect/exit notices and anything that originally was in sendtoreal_ops() and hasn't been changed (connect/exit notices also require a #define in config.h).
  57. If you have further questions about server notices (implementation, etc.), please consult the ircu source code and/or e-mail coder-com@undernet.org.
  58. Written by Ghostwolf (foxxe@wtfs.net) -- 18th June 1997
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement