File: collision_fnc.txt

package info (click to toggle)
ircd-ratbox 3.0.6.dfsg-2%2Bsqueeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 12,632 kB
  • ctags: 11,261
  • sloc: ansic: 123,099; sh: 26,517; makefile: 775; yacc: 258; lex: 246; perl: 93
file content (49 lines) | stat: -rw-r--r-- 2,124 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Nick collision FNC
Jilles Tjoelker <jilles -at- stack.nl>
--------------------------------------

Nick collision FNC performs a forced nick change to the user's UID instead
of a kill. The criteria for which user may keep the nick are the same as
before. Server notices will say the clients are being "saved" instead of
"killed". The client will get a 043 numeric, like this:

:<server> 043 <nick> <uid> :Nick collision, forcing nick change to your unique ID

The following conditions must be fulfilled:

- All servers on the network must allow remote nicks starting with a digit.
  This is not checked; if this is not fulfilled, users will be killed right
  after being FNCed.

- All servers on the path between the two clients must support TS6 and
  nick collision FNC (SAVE capab). If this is not fulfilled, the collision is
  resolved with kills as before. (This uses the ENCAP GCAP data for remotes.)

- The general::collision_fnc option must be enabled on the server(s) that
  detect the collision.

Technical details:

The following message is used to propagate the nick change coming from the
server that detected the collision:

:<sid> SAVE <uid> <ts>

The TS is compared to the current nick TS for the user; if it is not equal,
the message is dropped. This prevents nick desyncs if the user changed their
nick after being collided. A SAVE message also generates a server notice to
+k.

The SAVE message is used for propagation to the target's server, and also
in several other cases if the destination supports SAVE. In other cases, a
normal nick change or introduction with the UID as nick is sent.

If the SAVETS_100 capab is also present, the TS of the UID nick is 100. This is
necessary to ensure nick TS is always the same on all servers for each
nick-user pair, also if a user with a UID nick changes their nick but is
collided again (the server detecting the collision will not propagate the nick
change further). If the SAVETS_100 capab is not present, this document leaves
the TS of the UID nick undefined; warnings will be given about this.

-- 
$Id: collision_fnc.txt 24738 2007-12-18 19:48:01Z jilles $