summaryrefslogtreecommitdiff
path: root/src/modmanager_static.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-04-12 16:40:16 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-13 16:22:03 +0200
commit1626437cbf963b16ce44ef6cc829957fd3a7e2ff (patch)
tree1ea562260984c5c049bb5ea3f5b9ec8215a603ac /src/modmanager_static.cpp
parentdebe102133f478e2fbff597f6da92215bb8c2524 (diff)
m_spanningtree Introduce IJOIN and RESYNC
When a local user joins an existing channel, instead of an FJOIN, send an IJOIN with the channel name being the first parameter. If the joining user received prefix modes, append the channel TS and the prefix mode letters as the second and third parameters. When receiving an IJOIN, first check if the target channel exists. If it does not exist, ignore the join (that is, do not create the channel) and send a RESYNC back to the source. If the channel does exist then join the user, and in case any prefix modes were sent (found in the 3rd parameter), compare the TS of the channel to the TS in the IJOIN (2nd parameter). If the timestamps match, set the modes on the user, otherwise ignore the modes. Outgoing IJOINs to 1202 protocol servers are converted to FJOINs, but the channel mode parameter is left empty ("+").
Diffstat (limited to 'src/modmanager_static.cpp')
0 files changed, 0 insertions, 0 deletions