kiwiirc / kiwibnc

Apache License 2.0
43 stars 14 forks source link

Store 005 params internally and reconstruct to replay them #13

Closed DanielOaks closed 5 years ago

DanielOaks commented 5 years ago

Right now we just blindly store incoming 005 lines and replay them when a client reconnects. This could be a bit dodgy if a plugin wants to add its own isupport tokens.

Instead, we should store the values internally, keep a floating list and then when we need to play the 005 burst (on connection, on VERSION) we can construct the burst from the stored values and replay it. This would also let us correctly respond to -TOKEN.

DanielOaks commented 5 years ago

This is now being done, whoo.