Skip to content

Instantly share code, notes, and snippets.

@sparkertime
sparkertime / gist:868498
Created March 13, 2011 22:23
MrCrankyPants for Propane - block users and image uploads.
/* MrCrankyPants - block users and images from Propane!
* to use, place it in ~/Library/Application Support/Propane/unsupported/caveatPatchor.js (yes, it must be that file name)
*
* Created by ripping code off of https://gist.github.com/825404 and https://gist.github.com/310162
*/
Campfire.MrCrankyPants = Class.create({
options: {
blockedUsers: ['Abe L.', 'George W.'],
internal static class Translator
{
public static Dictionary<string, string> Translate(object values)
{
var result = new Dictionary<string, string>();
if (values != null)
{
foreach (PropertyDescriptor descriptor in TypeDescriptor.GetProperties(values))
{