Skip to content

Instantly share code, notes, and snippets.

-> PASS/AUTH/whatever
<- @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=#&
...(client starts displaying multiple networks)...
-> @net=freenode JOIN #znc
<- @net=freenode :grawity!foo@bar JOIN #znc

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

library dartboard._plugins;
import 'dart:io';
import 'dart:collection';
import 'dart:async';
import 'package:archive/archive.dart';
import 'package:yaml/yaml.dart';
part 'protocols/github.dart';
server:
port: 4000
users:
themike:
password: "password"
server:
address: "irc.esper.net"
port: 6667
nickname: "TheMikeBNC"
username: "TheMikeBNC"
server:
port: 6667
users:
themike:
password: "password"
server:
address: "irc.esper.net"
port: 6667
nickname: "TheMikeBNC"
username: "TheMikeBNC"
String _change_hostmask(String message) {
String hostmask = message.split(" ")[0];
if(hostmask.indexOf(":") != 0 || hostmask.contains("@"))
return message;
return ":127.0.0.1" + message.split(" ").sublist(1).join(" ");
}
import "dart:async";
import "dart:io";
import "./core.dart";
import "../../dartboard.dart";
_handle_client(Socket socket) {
}
import cpw.mods.fml.common.FMLLog;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import org.apache.commons.lang3.ArrayUtils;
import java.util.*;
public abstract class CraftingRecipeBuilder {
// Breeze. Utility function for instating/abstracting isolates.
Future breeze(Function func) {
ReceivePort port = new ReceivePort();
Future.wait([Isolate.spawn((SendPort port) {
func();
port.send("QUIT");
}, port.sendPort)]);
bool isReturned = false;
Future returned = new Future(() {
var logger = treestump.Logger("nodeicus");
var stdout = treestump.Mirrors.stdout();
stdout.setFormat(chalk.yellow("{{time}} {{level}} ->") + " {{message}}");
logger.addMirror(stdout);
logger.info("Hello world!");