kiwiirc / kiwibnc

Apache License 2.0
43 stars 14 forks source link

WEBIRC support #6

Open prawnsalad opened 5 years ago

prawnsalad commented 5 years ago

Some networks would prefer to have the users first connection IP passed to the network so we should add this via WEBIRC

DanielOaks commented 5 years ago

Hmm, this'll be interesting to handle. Basically, a new var called LastSeenIP, whenever a client connects we update that user's LastSeenIP with the client's new IP. When we connect to upstream we can use WEBIRC if it's defined in the... config file probably? Maybe? Should regular users be able to enable/disable WEBIRC on each network or will we handle it another way to ensure that the bouncer always uses it when appropriate.

If we're connecting to upstream and haven't received a connection from the user at all yet (or e.g. they're connecting from localhost), should we just give a random IP in WEBIRC, or something different. I wonder how/whether ZNC handles this, will take a look.

DanielOaks commented 5 years ago

Map of hostname<->webirc password, just define it in config.