Skip to content

Instantly share code, notes, and snippets.

@TrainerGuy22
Last active August 29, 2015 14:02
Show Gist options
  • Save TrainerGuy22/71fbe96a4d816c6f3789 to your computer and use it in GitHub Desktop.
Save TrainerGuy22/71fbe96a4d816c6f3789 to your computer and use it in GitHub Desktop.

multi-net Capability Extension

Copyright (c) 2014 TrainerGuy22.

The mutli-net capability would allow for clients to have different servers handled through a single connection. This functionality is intended to bring functionality for having multiple servers under one connection to IRC bouncers, with rich client integration.

This will be achieved by simply adding a net tag to every message sent between the client and the server (or, as in this capability's intended functionality, the bouncer). This would be in addition to the assumed server without the prefix, so bouncer-specific channels could be joined as well.

Example (from the viewpoint of a bouncer):

<- @net=freenode :irc.freenode.net 001 grawity :Welcome <- @net=freenode :irc.freenode.net 005 grawity CHANTYPES=# <- @net=atheme :irc.atheme.net 001 grawity :Welcome <- @net=atheme :irc.atheme.net 005 grawity CHANTYPES=#& -> @net=freenode JOIN #znc <- @net=freenode :grawity!foo@bar JOIN #znc

This example would make the client respect two different servers, freenode and atheme, within the current connection.

Reasoning behind proposal

While working on IRC bouncer dartboard, we were working on implmenting our functionality for having more than one server connected at once through a client. We found that there was no possible way to have nicknames for different servers, in which their channels were prefixed with the server name. So, this extension was originally born as prefixed-chan.

Issues were pointed out within the draft, so the draft was rewritten as multi-net.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment