Skip to content

Instantly share code, notes, and snippets.

View ahf's full-sized avatar

Alexander Færøy ahf

View GitHub Profile
commit d645477bb42655ab85905f786624937c658e9ad5
Author: Alexander Færøy <ahf@0x90.dk>
Date: Sat Apr 2 19:19:02 2011 +0200
Add support for CTCP A/S/L
Reviewed by Emmy Slinge.
diff --git a/src/irc/core/ctcp.c b/src/irc/core/ctcp.c
index be2edba..f512963 100644
commit ce6c86c7498522eb3d0bef731bfaf4dd76469b68
Author: Alexander Færøy <ahf@0x90.dk>
Date: Sun Apr 24 22:28:37 2011 +0200
Add Logging Process and utilities.
The design of this code is to let NewLogProcess() create a pointer to a
LogProcess instance which acts as the API proxy for the go-routine that
deals with the actual writing of the messages to the log file.
From 7cb8b0ce15a7a26fe0fa394d7d7a38ef098d7a88 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexander=20F=C3=A6r=C3=B8y?= <alexander.faeroy@nokia.com>
Date: Wed, 4 May 2011 16:49:03 +0200
Subject: [PATCH 1/2] Add Support for Save to Gallery.
We ask the UI Process for a result filename for the image that is to
be saved to the disk. If the resulting result filename is an empty
string, we wont save it to the disk. This allows us to reject the image
based on being too large, having a bogus filename or bogus MIME type.
From 36cd3bb1f73577190d69eb7a94d4389f8846dd80 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexander=20F=C3=A6r=C3=B8y?= <ahf@0x90.dk>
Date: Sat, 7 May 2011 23:13:34 +0200
Subject: [PATCH] Make ident.go build on newer Go.
Go's net.Dial() has recently changed API.
---
ident.go | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
#include <ratbox_lib.h>
#include "websocket.h"
struct WebSocketKey *parse_websocket_key(const char *s) {
struct WebSocketKey *r;
int i;
r = rb_malloc(sizeof(struct WebSocketKey));
r->digits = 0;
{
"server_info": {
"name": "irc.example.org",
"description": "Test ircd-novo server.",
"network": {
"name": "Example Network",
"description": "This is an example IRC network."
}
},
"admin": {
{
"Ircd": {
"ServerInfo": {
"name": "irc.example.org",
"description": "Test ircd-novo server.",
"tls": {
"certificate": "...",
"key": "..."
}
},
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
* Copyright (c) 2011 Alexander Færøy <ahf@0x90.dk>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
atum :: ~ $ nc localhost 6667
NOTICE AUTH :*** Processing connection to irc.example.org ...
NOTICE AUTH :*** Looking up your hostname ...
NOTICE AUTH :*** Found your hostname (localhost) ...
NICK ahf
:irc.example.org 433 * ahf :Nickname is already in use.
NICK ahf_
:irc.example.org 433 * ahf_ :Nickname is already in use.
USER a b c d
NICK ahf__
ircd-novo 0.1 starting ...
2011/05/22 17:53:31 Unable to add secure listener for ::1:6697: Empty TLS certificate in configuration file.
2011/05/22 17:53:31 Unable to add secure listener for 127.0.0.1:8080: Empty TLS certificate in configuration file.
2011/05/22 17:53:31 Opening up for incoming connections
2011/05/22 17:53:31 Listening on 127.0.0.1:6667 (Insecure TCP)
2011/05/22 17:53:37 Incoming Connection from 127.0.0.1:59398 to 127.0.0.1:6667 (Insecure TCP)
2011/05/22 17:53:37 *!*@127.0.0.1: Entering Output Handler!
2011/05/22 17:53:37 *!*@127.0.0.1: Sending: 'NOTICE AUTH :*** Processing connection to irc.example.org ...'
2011/05/22 17:53:37 *!*@127.0.0.1: Entering Input Handler!
2011/05/22 17:53:37 *!*@127.0.0.1: Entering Raw Message Handler!